Ejemplo n.º 1
0
 def test_endofyear(self):
    self.assertEqual(20150101, Common.getDate(20141231, 1))
    self.assertEqual(20141226, Common.getDate(20150105, -10))
    self.assertEqual(20150105, Common.getDate(20141226, 10))
    self.assertEqual(20141231, Common.getDate(20150101, -1))
Ejemplo n.º 2
0
 def test_simple(self):
    self.assertEqual(20150207, Common.getDate(20150206, 1))
    self.assertEqual(20150205, Common.getDate(20150206, -1))
    self.assertEqual(20150215, Common.getDate(20150210, 5))