예제 #1
0
class getStatMod(unittest.TestCase):
    """ Test that statMod returns the correct values for all stats """
    def setUp(self):
        """ Builds the Status object"""
        self.status = Status()

    def checkStatMods(self):
        """ Test that stat modifiers are correct for generic status """
        for key in self.status.statMods:
            assert self.status.getStatMod(key) == 1, "All stats should be 1"
예제 #2
0
class getStatMod(unittest.TestCase):
    """ Test that statMod returns the correct values for all stats """
    
    def setUp(self):
        """ Builds the Status object"""
        self.status = Status()
    
    def checkStatMods(self):
        """ Test that stat modifiers are correct for generic status """
        for key in self.status.statMods:
            assert self.status.getStatMod(key) == 1, "All stats should be 1"