def testConvert7(self): dashbase_pattern = convert_dateformat("%c '\"[") self.assertEqual("EEE MMM d HH:mm:ss yyyy '''\"['", dashbase_pattern)
def testBasic(self): self.assertEqual("", convert_dateformat("")) self.assertEqual("''''", convert_dateformat("'")) self.assertEqual("''''''", convert_dateformat("''")) self.assertEqual("''''''''", convert_dateformat("'''"))
def testConvert6(self): dashbase_pattern = convert_dateformat("%D %R '\"[") self.assertEqual("MM/dd/yy HH:mm '''\"['", dashbase_pattern)
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)
def testConvert4(self): dashbase_pattern = convert_dateformat("%F %T.%3q '\"[") self.assertEqual("yyyy-MM-dd HH:mm:ss.SSS '''\"['", dashbase_pattern)
def testConvert2(self): dashbase_pattern = convert_dateformat("%F %T '123'") self.assertEqual("yyyy-MM-dd HH:mm:ss '''123'''", dashbase_pattern)
def testConvert1(self): dashbase_pattern = convert_dateformat('%F %T 123') self.assertEqual("yyyy-MM-dd HH:mm:ss '123'", dashbase_pattern)