示例#1
0
 def testConvert7(self):
     dashbase_pattern = convert_dateformat("%c '\"[")
     self.assertEqual("EEE MMM d HH:mm:ss yyyy '''\"['", dashbase_pattern)
示例#2
0
 def testBasic(self):
     self.assertEqual("", convert_dateformat(""))
     self.assertEqual("''''", convert_dateformat("'"))
     self.assertEqual("''''''", convert_dateformat("''"))
     self.assertEqual("''''''''", convert_dateformat("'''"))
示例#3
0
 def testConvert6(self):
     dashbase_pattern = convert_dateformat("%D %R '\"[")
     self.assertEqual("MM/dd/yy HH:mm '''\"['", dashbase_pattern)
示例#4
0
 def testConvert5(self):
     dashbase_pattern = convert_dateformat("%a, %d %b %y %T %z '\"[")
     self.assertEqual("EEE, dd MMM yy HH:mm:ss Z '''\"['", dashbase_pattern)
示例#5
0
 def testConvert4(self):
     dashbase_pattern = convert_dateformat("%F %T.%3q '\"[")
     self.assertEqual("yyyy-MM-dd HH:mm:ss.SSS '''\"['", dashbase_pattern)
示例#6
0
 def testConvert2(self):
     dashbase_pattern = convert_dateformat("%F %T '123'")
     self.assertEqual("yyyy-MM-dd HH:mm:ss '''123'''", dashbase_pattern)
示例#7
0
 def testConvert1(self):
     dashbase_pattern = convert_dateformat('%F %T 123')
     self.assertEqual("yyyy-MM-dd HH:mm:ss '123'", dashbase_pattern)