コード例 #1
0
ファイル: models.py プロジェクト: UtahDave/py-bootstrap
class WorldTestCase(testify.TestCase):
    @testify.setup
    def create_world(self):
        self.world = World()

    @testify.teardown
    def clear_world(self):
        self.world = None

    def test_default_state(self):
        testify.assert_equal(self.world.get_state(), None,
                             'incorrect default state')
コード例 #2
0
ファイル: models.py プロジェクト: TBxy/py-bootstrap
class WorldTestCase(testify.TestCase):
    @testify.setup
    def create_world(self):
        self.world = World()

    @testify.teardown
    def clear_world(self):
        self.world = None

    def test_default_state(self):
        testify.assert_equal(self.world.get_state(), None,
                'incorrect default state')
コード例 #3
0
ファイル: models.py プロジェクト: UtahDave/py-bootstrap
 def create_world(self):
     self.world = World()
コード例 #4
0
ファイル: models.py プロジェクト: TBxy/py-bootstrap
 def create_world(self):
     self.world = World()