class checkHit(unittest.TestCase): """ Test cases of hit """ def setUp(self): """ Build the Pkmn and Delegate for the test """ self.delegate = AlwaysHitDelegate("") self.environment = BattleEnvironment() def hit(self): """ Test that it always hits """ hit = self.delegate.checkHit(100, 0, self.environment) assert hit, "Should always hit"
def setUp(self): """ Build the Pkmn and Delegate for the test """ self.delegate = AlwaysHitDelegate("") self.environment = BattleEnvironment()