def test_days_to_date_empty(self): assert days_to_date(None) is None
def test_days_to_date_string_wrong_format(self): assert days_to_date('04.03.2019') is None
def test_days_to_date_datetime(self): assert days_to_date(datetime(2019, 3, 4, 10, 45)) == date(2019, 3, 4)
def test_days_to_date_string_positive(self): assert days_to_date('2019-03-04') == date(2019, 3, 4)
def test_days_to_date_date(self): assert days_to_date(date(2019, 3, 4)) == date(2019, 3, 4)