Esempio n. 1
0
class canBeConfused(unittest.TestCase):
    """ Test that canBeConfused returns the correct default values """

    def setUp(self):
        """ Builds the ability """
        self.pkmn = BuildPokemonBattleWrapper()
        self.ability = Ability(None)

    def properReturnValues(self):
        """ Check that canBeConfused returns the proper default values """
        assert self.ability.canBeConfused(None, []), "Should be able to be Confused"

    def properReturnValues_NoMessagesObject(self):
        """ Check that canBeConfused returns the proper default values """
        assert self.ability.canBeConfused(None, None), "Should be able to be Confused"
Esempio n. 2
0
class canBeConfused(unittest.TestCase):
    """ Test that canBeConfused returns the correct default values """
    def setUp(self):
        """ Builds the ability """
        self.pkmn = BuildPokemonBattleWrapper()
        self.ability = Ability(None)

    def properReturnValues(self):
        """ Check that canBeConfused returns the proper default values """
        assert self.ability.canBeConfused(None,
                                          []), "Should be able to be Confused"

    def properReturnValues_NoMessagesObject(self):
        """ Check that canBeConfused returns the proper default values """
        assert self.ability.canBeConfused(
            None, None), "Should be able to be Confused"