class thawed(unittest.TestCase): """ Test that thawed returns the correct values """ def setUp(self): """ Builds the Freeze status""" self.status = Freeze() def thawed(self): """ Test that thawed returns correctly when the staus should thaw """ assert self.status.thawed(0), "Should thaw on zero" def notThawed(self): """ Test that thawed returns correctly when the staus should not thaw """ for i in range(1, 5): assert not self.status.thawed(i), "Should not thaw on anything other than zero"
def setUp(self): """ Builds the Freeze status""" self.status = Freeze()