Beispiel #1
0
 def test_reflexive_gregorian(self):
     self.assertEqual(from_gregorian(*to_gregorian(100, 13, 25)),
                      (100, 13, 25))
     self.assertEqual(from_gregorian(*to_gregorian(120, 13, 25)),
                      (120, 13, 25))
     self.assertEqual(from_gregorian(*to_gregorian(50, 13, 25)),
                      (50, 13, 25))
     self.assertEqual(from_gregorian(*to_gregorian(200, 1, 5)), (200, 1, 5))
     self.assertEqual(from_gregorian(*to_gregorian(250, 14, 1)),
                      (250, 14, 1))
Beispiel #2
0
 def test_reflexive_gregorian(self):
     self.assertEqual(from_gregorian(*to_gregorian(100, 13, 25)), (100, 13, 25))
     self.assertEqual(from_gregorian(*to_gregorian(120, 13, 25)), (120, 13, 25))
     self.assertEqual(from_gregorian(*to_gregorian(50, 13, 25)), (50, 13, 25))
     self.assertEqual(from_gregorian(*to_gregorian(200, 1, 5)), (200, 1, 5))
     self.assertEqual(from_gregorian(*to_gregorian(250, 14, 1)), (250, 14, 1))
Beispiel #3
0
 def test_to_gregorian(self):
     self.assertEqual(to_gregorian(228, 13, 25), (2016, 12, 26))
     self.assertEqual(to_gregorian(228, 13, 25), (2016, 12, 26))
Beispiel #4
0
 def test_to_gregorian(self):
     self.assertEqual(to_gregorian(228, 13, 25), (2016, 12, 26))
     self.assertEqual(to_gregorian(228, 13, 25), (2016, 12, 26))