예제 #1
0
 def test_to_iso_with_date(self):
     assert to_iso(date(1984, 2, 29)) == '1984-02-29'
예제 #2
0
 def test_to_iso_emtpy(self):
     assert to_iso(None) is None
예제 #3
0
 def test_to_iso_with_datetime(self):
     assert to_iso(datetime(1984, 2, 29, 1, 2, 3)) == '1984-02-29T01:02:03'
예제 #4
0
 def test_to_iso_with_datetime(self):
     self.assertEqual(to_iso(datetime(1984, 2, 29, 1, 2, 3)),
                      '1984-02-29T01:02:03')
예제 #5
0
 def test_to_iso_with_date(self):
     self.assertEqual(to_iso(date(1984, 2, 29)), '1984-02-29')
예제 #6
0
파일: test_utils.py 프로젝트: grouan/udata
 def test_to_iso_with_date(self):
     self.assertEqual(to_iso(date(1984, 2, 29)), '1984-02-29')
예제 #7
0
 def test_to_iso_emtpy(self):
     self.assertEqual(to_iso(None), None)
예제 #8
0
파일: test_utils.py 프로젝트: grouan/udata
 def test_to_iso_with_datetime(self):
     self.assertEqual(to_iso(datetime(1984, 2, 29, 1, 2, 3)),
                      '1984-02-29T01:02:03')
예제 #9
0
파일: test_utils.py 프로젝트: grouan/udata
 def test_to_iso_emtpy(self):
     self.assertEqual(to_iso(None), None)
예제 #10
0
 def test_to_iso_with_date(self):
     assert to_iso(date(1984, 2, 29)) == '1984-02-29'
예제 #11
0
 def test_to_iso_with_datetime(self):
     assert to_iso(datetime(1984, 2, 29, 1, 2, 3)) == '1984-02-29T01:02:03'
예제 #12
0
 def test_to_iso_emtpy(self):
     assert to_iso(None) is None