def test_parses_dates_with_better_error_message(self):
        try:
            parse_date('foo')
            self.fail('Should have failed to parse')
        except __HOLE__ as e:
            self.assertIn('Unable to parse date value: foo', str(e))
dataset/ETHPy150Open aws/aws-cli/tests/unit/customizations/cloudtrail/test_validation.py/TestValidation.test_parses_dates_with_better_error_message