コード例 #1
0
ファイル: test_game.py プロジェクト: vml-msmith/pymush
 def test_start_before_run(self):
     conf = MockGameConfigObject()
     conf.game_timer = MockGameTimer()
     game = Game(conf)
     self.assertFalse(game.run())
     game.injectConfig(conf)
     game.start()
     self.assertTrue(game.run())
コード例 #2
0
ファイル: test_game.py プロジェクト: vml-msmith/pymush
 def test_inject_config(self):
     conf = MockGameConfigObject()
     game = Game()
     self.assertEqual(game.config, None)
     game.injectConfig(conf)
     self.assertEqual(game.config, conf)