def test_invalid_exp(self): with self.assertRaises(InvalidExpressionError): validate_jmespath_for_set('Response.*.Name') with self.assertRaises(InvalidExpressionError): validate_jmespath_for_set('Response.Things[0]') with self.assertRaises(InvalidExpressionError): validate_jmespath_for_set('') with self.assertRaises(InvalidExpressionError): validate_jmespath_for_set('.')
def test_invalid_exp(self): with self.assertRaises(InvalidExpressionError): validate_jmespath_for_set('Response.*.Name') with self.assertRaises(InvalidExpressionError): validate_jmespath_for_set('Response.Things[0]') with self.assertRaises(InvalidExpressionError): validate_jmespath_for_set('') with self.assertRaises(InvalidExpressionError): validate_jmespath_for_set('.')