def test_creature_accessor(self):
        """Test that the creatures can be accessed via their uid."""
        bg = BattlegroundStateFactory()
        h1 = bg.normalize()
        uid = bg.add_creature(CreatureStateFactory())

        bg[uid].tap()
        self.assertNotEqual(bg.normalize(), h1)
Example #2
0
    def test_creature_accessor(self):
        """Test that the creatures can be accessed via their uid."""
        bg = BattlegroundStateFactory()
        h1 = bg.normalize()
        uid = bg.add_creature(CreatureStateFactory())

        bg[uid].tap()
        self.assertNotEqual(bg.normalize(), h1)