Пример #1
0
 def testToPythonFunction(self):
     cDate = SbkDate(2010, 12, 12)
     pyDate = cDate.toPython()
     self.assertTrue(cDate.day(), pyDate.day)
     self.assertTrue(cDate.month(), pyDate.month)
     self.assertTrue(cDate.year(), pyDate.year)
Пример #2
0
 def testToPythonFunction(self):
     cDate = SbkDate(2010, 12, 12)
     pyDate = cDate.toPython()
     self.assert_(cDate.day(), pyDate.day)
     self.assert_(cDate.month(), pyDate.month)
     self.assert_(cDate.year(), pyDate.year)
Пример #3
0
 def testConstructorWithDateObject(self):
     pyDate = date(2010, 12, 12)
     cDate = SbkDate(pyDate)
     self.assertTrue(cDate.day(), pyDate.day)
     self.assertTrue(cDate.month(), pyDate.month)
     self.assertTrue(cDate.year(), pyDate.year)
Пример #4
0
 def testConstructorWithDateObject(self):
     pyDate = date(2010, 12, 12)
     cDate = SbkDate(pyDate)
     self.assert_(cDate.day(), pyDate.day)
     self.assert_(cDate.month(), pyDate.month)
     self.assert_(cDate.year(), pyDate.year)