Mercurial > fife-parpg
comparison tests/swig_tests/model_tests.py @ 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 | bf7f838e6684 |
children | 81641655bc38 |
comparison
equal
deleted
inserted
replaced
186:8f65a3074c10 | 187:644bf7ca1e0a |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # -*- coding: utf-8 -*- | |
2 from swig_test_utils import * | 3 from swig_test_utils import * |
3 import math | 4 import math |
4 | 5 |
5 class TestModel(unittest.TestCase): | 6 class TestModel(unittest.TestCase): |
6 | 7 |
7 def setUp(self): | 8 def setUp(self): |
9 self.timeManager = fife.TimeManager() | |
8 self.model = fife.Model() | 10 self.model = fife.Model() |
11 | |
12 def tearDown(self): | |
13 del self.timeManager | |
9 | 14 |
10 def testModel(self): | 15 def testModel(self): |
11 map1 = self.model.createMap("map001") | 16 map1 = self.model.createMap("map001") |
12 map2 = self.model.createMap("map002") | 17 map2 = self.model.createMap("map002") |
13 | 18 |