Ejemplo n.º 1
0
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"
Ejemplo n.º 2
0
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"
Ejemplo n.º 3
0
 def setUp(self):
     """ Build the Pkmn and Delegate for the test """
     self.delegate = AlwaysHitDelegate("")
     self.environment = BattleEnvironment()
Ejemplo n.º 4
0
 def  setUp(self):
     """ Build the Pkmn and Delegate for the test """
     self.delegate = AlwaysHitDelegate("")
     self.environment = BattleEnvironment()