def test_validate_date_already_date(self): expected = datetime.date(2012, 3, 14) actual = validation.validate_date(expected) assert_equal(actual, expected)
def test_validate_date(self): actual = validation.validate_date("03/14/12") expected = datetime.date(2012, 3, 14) assert_equal(actual, expected)