예제 #1
0
 def test_parseDTStart(self):
     """
     Should take a content line and return a datetime object.
     """
     self.assertEqual(
         parseDtstart(textLineToContentLine("DTSTART:20060509T000000")),
         datetime.datetime(2006, 5, 9, 0, 0))
예제 #2
0
파일: tests.py 프로젝트: tBaxter/vobject
 def test_parseDTStart(self):
     """
     Should take a content line and return a datetime object.
     """
     self.assertEqual(
         parseDtstart(textLineToContentLine("DTSTART:20060509T000000")),
         datetime.datetime(2006, 5, 9, 0, 0)
     )