예제 #1
0
class immune(unittest.TestCase):
    """ Test that immune returns correctly """
    def setUp(self):
        """ Builds the status"""
        self.status = Status()
            
    def notImmune(self):
        """ Test if it can correctly identify when the target is not immune """
        types = ["ELECTRIC"]
        other = "FIRE"
        assert not self.status.immune(types, other), "Should never be immune."
예제 #2
0
class immune(unittest.TestCase):
    """ Test that immune returns correctly """
    def setUp(self):
        """ Builds the status"""
        self.status = Status()

    def notImmune(self):
        """ Test if it can correctly identify when the target is not immune """
        types = ["ELECTRIC"]
        other = "FIRE"
        assert not self.status.immune(types, other), "Should never be immune."