Пример #1
0
    def test_adds_volatile_status_from_move_string(self):
        split_msg = ['', '-start', 'p1a: Weedle', 'move: Taunt']
        start_volatile_status(self.battle, split_msg)

        expected_volatile_statuese = ['taunt']

        self.assertEqual(expected_volatile_statuese,
                         self.battle.user.active.volatile_statuses)
Пример #2
0
    def test_volatile_status_is_set_on_user_pokemon(self):
        split_msg = ['', '-start', 'p1a: Weedle', 'Encore']
        start_volatile_status(self.battle, split_msg)

        expected_volatile_statuese = ['encore']

        self.assertEqual(expected_volatile_statuese,
                         self.battle.user.active.volatile_statuses)
Пример #3
0
    def test_volatile_status_is_set_on_opponent_pokemon(self):
        split_msg = ['', '-start', 'p2a: Caterpie', 'Encore']
        start_volatile_status(self.battle, split_msg)

        expected_volatile_statuese = ['encore']

        self.assertEqual(expected_volatile_statuese,
                         self.battle.opponent.active.volatile_statuses)
Пример #4
0
    def test_does_not_add_the_same_volatile_status_twice(self):
        self.battle.opponent.active.volatile_statuses = ['encore']
        split_msg = ['', '-start', 'p2a: Caterpie', 'Encore']
        start_volatile_status(self.battle, split_msg)

        expected_volatile_statuese = ['encore']

        self.assertEqual(expected_volatile_statuese,
                         self.battle.opponent.active.volatile_statuses)
Пример #5
0
    def test_flashfire_sets_ability(self):
        split_msg = ['', '-start', 'p2a: Caterpie', 'ability: Flash Fire']
        start_volatile_status(self.battle, split_msg)

        self.assertEqual('flashfire', self.battle.opponent.active.ability)