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'
def test_dt_to_string_date(self): instance = Nasapi('foo') assert instance.dt_to_string(date(2013, 4, 15)) == '2013-04-15'