diff options
Diffstat (limited to 'datamaps/tests/test_cleanser.py')
-rw-r--r-- | datamaps/tests/test_cleanser.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/datamaps/tests/test_cleanser.py b/datamaps/tests/test_cleanser.py index 9d6df1a..344a9a3 100644 --- a/datamaps/tests/test_cleanser.py +++ b/datamaps/tests/test_cleanser.py @@ -5,25 +5,25 @@ from ..process.cleansers import Cleanser def test_cleaning_dot_date(): ds = "25.1.72" ds_double = "25.01.72" - four_year = "25.01.1972" + four_year = "25.01.2072" c = Cleanser(ds) c_double = Cleanser(ds_double) c_four = Cleanser(four_year) - assert c.clean() == datetime.date(1972, 1, 25) - assert c_double.clean() == datetime.date(1972, 1, 25) - assert c_four.clean() == datetime.date(1972, 1, 25) + assert c.clean() == datetime.date(2072, 1, 25) + assert c_double.clean() == datetime.date(2072, 1, 25) + assert c_four.clean() == datetime.date(2072, 1, 25) def test_cleaning_slash_date(): ds = "25/1/72" ds_double = "25/01/72" - four_year = "25/01/1972" + four_year = "25/01/2072" c = Cleanser(ds) c_double = Cleanser(ds_double) c_four = Cleanser(four_year) - assert c.clean() == datetime.date(1972, 1, 25) - assert c_double.clean() == datetime.date(1972, 1, 25) - assert c_four.clean() == datetime.date(1972, 1, 25) + assert c.clean() == datetime.date(2072, 1, 25) + assert c_double.clean() == datetime.date(2072, 1, 25) + assert c_four.clean() == datetime.date(2072, 1, 25) def test_em_dash_key(): |