Beispiel #1
0
 def test_dt_to_string_datetime(self):
     instance = Nasapi('bar')
     assert instance.dt_to_string(datetime(2013, 4, 15, 0, 0, 0)) == '2013-04-15'
Beispiel #2
0
 def test_dt_to_string_date(self):
     instance = Nasapi('foo')
     assert instance.dt_to_string(date(2013, 4, 15)) == '2013-04-15'