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)
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)
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)
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)