def test_compare_different_units(self): di_1 = Day_Info(datetime.datetime(2005, 1, 2, 3), 1, 2) di_2 = Day_Info(datetime.datetime(2005, 1, 2, 3), 1, 100) self.assertEqual(di_1.compare(di_2), False)
def test_compare_same(self): di_1 = Day_Info(datetime.datetime(2005,1,2,3),1,2) di_2 = Day_Info(datetime.datetime(2005,1,2,3),1,2) self.assertEqual(di_1.compare(di_2),True)