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