Mercurial > fife-parpg
changeset 187:644bf7ca1e0a
Fixed unit test.
Models reference the time manager through the TimeProvider.
author | phoku@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Wed, 25 Feb 2009 20:58:09 +0000 |
parents | 8f65a3074c10 |
children | 06dddc96ce54 |
files | tests/swig_tests/model_tests.py |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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")