Example #1
0
    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)
Example #2
0
    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)