Esempio n. 1
0
class onContact(unittest.TestCase):
    """ Test that onContact returns the values """
    def setUp(self):
        """ Builds the delegate and side for use in the tests """
        self.pkmn = BuildPokemonBattleWrapper()
        self.attacker = BuildPokemonBattleWrapper()
        self.ability = Ability(None)

    def properReturnValues(self):
        """ Check that onContact returns the proper default values """
        messages = self.ability.onContact(self.pkmn, self.attacker)
        assert messages == [], "Should have no messages."
Esempio n. 2
0
class onContact(unittest.TestCase):
    """ Test that onContact returns the values """

    def setUp(self):
        """ Builds the delegate and side for use in the tests """
        self.pkmn = BuildPokemonBattleWrapper()
        self.attacker = BuildPokemonBattleWrapper()
        self.ability = Ability(None)

    def properReturnValues(self):
        """ Check that onContact returns the proper default values """
        messages = self.ability.onContact(self.pkmn, self.attacker)
        assert messages == [], "Should have no messages."