comparison tests/swig_tests/controller_tests.py @ 0:4a0efb7baf70

* Datasets becomes the new trunk and retires after that :-)
author mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
date Sun, 29 Jun 2008 18:44:17 +0000
parents
children d2f1e81fbe2c
comparison
equal deleted inserted replaced
-1:000000000000 0:4a0efb7baf70
1 #!/usr/bin/env python
2 from swig_test_utils import *
3
4 class TestController(unittest.TestCase):
5
6 def setUp(self):
7 self.engine = getEngine(True)
8
9 def tearDown(self):
10 del self.engine
11
12 def testInstances(self):
13 print "\nTest SoundManager"
14 self.assert_(self.engine.getSoundManager())
15 print "Test EventManager"
16 self.assert_(self.engine.getEventManager())
17 print "Test TimeManager"
18 self.assert_(self.engine.getTimeManager())
19 print "Test GuiManager"
20 self.assert_(self.engine.getGuiManager())
21 print "Test ImagePool"
22 self.assert_(self.engine.getImagePool())
23 print "Test AnimationPool"
24 self.assert_(self.engine.getAnimationPool())
25 pass
26
27 def testPumping(self):
28 self.engine.initializePumping()
29 for i in xrange(10):
30 self.engine.pump()
31 self.engine.finalizePumping()
32
33 TEST_CLASSES = [TestController]
34
35 if __name__ == '__main__':
36 unittest.main()