class immune(unittest.TestCase): """ Test cases of immune """ def setUp(self): """ Build the *** for the test """ self.weather = Hail() self.pkmn = BuildPokemonBattleWrapper() def immune(self): """ Test that an Ice-type Pokemon is immune """ self.pkmn.setTypes(["ICE"]) assert self.weather.immune(self.pkmn), "Ice-type pokemon should be immune" def notImmune(self): """ Test that a non-Ice-type Pokemon is not immune """ self.pkmn.setTypes(["GRASS"]) assert not self.weather.immune(self.pkmn), "Non-Ice-type pokemon should not be immune"
class immune(unittest.TestCase): """ Test cases of immune """ def setUp(self): """ Build the *** for the test """ self.weather = Hail() self.pkmn = BuildPokemonBattleWrapper() def immune(self): """ Test that an Ice-type Pokemon is immune """ self.pkmn.setTypes(["ICE"]) assert self.weather.immune( self.pkmn), "Ice-type pokemon should be immune" def notImmune(self): """ Test that a non-Ice-type Pokemon is not immune """ self.pkmn.setTypes(["GRASS"]) assert not self.weather.immune( self.pkmn), "Non-Ice-type pokemon should not be immune"
def setUp(self): """ Build the *** for the test """ self.weather = Hail() self.pkmn = BuildPokemonBattleWrapper()