# HG changeset patch # User phoku@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1235595489 0 # Node ID 644bf7ca1e0aac2399f5ca3e5d7e2560eca7674b # Parent 8f65a3074c10c45806070ea453d5c21d31428739 Fixed unit test. Models reference the time manager through the TimeProvider. diff -r 8f65a3074c10 -r 644bf7ca1e0a tests/swig_tests/model_tests.py --- a/tests/swig_tests/model_tests.py Wed Feb 25 16:44:00 2009 +0000 +++ b/tests/swig_tests/model_tests.py Wed Feb 25 20:58:09 2009 +0000 @@ -1,12 +1,17 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- from swig_test_utils import * import math class TestModel(unittest.TestCase): def setUp(self): + self.timeManager = fife.TimeManager() self.model = fife.Model() + def tearDown(self): + del self.timeManager + def testModel(self): map1 = self.model.createMap("map001") map2 = self.model.createMap("map002")