class onStatMod(unittest.TestCase): """ Test that onStatMod returns the correct default values """ def setUp(self): """ Builds the delegate and side for use in the tests """ self.ability = Ability(None) self.degree = 1 def properReturnValues(self): """ Check that onStatMod returns the proper default values """ degree, messages = self.ability.onStatMod(None, None, self.degree, None) assert degree == self.degree, "Degree should be unmodified." assert len(messages) == 0, "Messages should have no elements"