def test_reasonable_date_validator(self, input, mi): mi.side_effect = Exception("") with self.assertRaises(Exception): v.reasonable_date_validator(input)
def test_reasonable_date_validator(self, input): assert_equal(input, v.reasonable_date_validator(input))
def test_reasonable_date_validator_invalid(self, input, mi): mi.side_effect = Exception("") with self.assertRaises(Exception): v.reasonable_date_validator(input)
def test_reasonable_date_validator(self, input): assert_equal(input, v.reasonable_date_validator(input))
def test_reasonable_date_validator_empty(self, input): self.assertIsNone(v.reasonable_date_validator(input))