def test_convert_date_to_string_with_exception(self): fecha = '2010-10-10' expected = '2010-10-10' result = utils.convert_date_to_string(fecha) self.assertEqual(expected, result)
def test_convert_date_to_string(self): fecha = datetime.datetime(2010, 10, 10) expected = '2010-10-10' result = utils.convert_date_to_string(fecha) self.assertEqual(expected, result)