Run the query and expect an error that contains the given message
(self, query, expected_err_msg)
| 31 | return actual_result |
| 32 | |
| 33 | def expect_error(self, query, expected_err_msg): |
| 34 | """Run the query and expect an error that contains the given message""" |
| 35 | |
| 36 | try: |
| 37 | graph.query(query) |
| 38 | assert(False) |
| 39 | except redis.exceptions.ResponseError as e: |
| 40 | self.env.assertIn(expected_err_msg, str(e)) |
| 41 | |
| 42 | def test01_test_validations(self): |
| 43 | """Make sure we fail on invalid queries""" |
no test coverage detected