示例#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)
     )