示例#1
0
 def _fmt_string(self, k):
     """Take care of date string"""
     if k == 'DT':
         return isoformat(self[k])
     return self[k]
示例#2
0
 def test_isoformat(self):
     """Test isoformatting function"""
     s = "120924"
     self.assertEqual(isoformat(s), "2012-09-24")
示例#3
0
 def test_isoformat(self):
     """Test isoformatting function"""
     s = "120924"
     assert isoformat(s) == "2012-09-24"