def test_normalize_date_aggressively_ignores_fake_dates(): assert normalize_date_aggressively('0000') is None
def test_normalize_date_aggressively_raises_on_wrong_format(): with pytest.raises(ValueError): normalize_date_aggressively('2014=12-01')
def test_normalize_date_aggressively_strips_wrong_day(): assert normalize_date_aggressively('2015-02-31') == '2015-02'
def test_normalize_date_aggressively_strips_wrong_month(): assert normalize_date_aggressively('2015-20-24') == '2015'
def test_normalize_date_aggressively_accepts_correct_date(): assert normalize_date_aggressively('2015-02-24') == '2015-02-24'