MCPcopy Create free account
hub / github.com/apache/impala / _assert_invalid_handle

Method _assert_invalid_handle

tests/custom_cluster/test_beeswax.py:84–91  ·  view source on GitHub ↗

Assert that invoking fn() raises an ImpalaBeeswaxException with an invalid query handle error.

(self, fn)

Source from the content-addressed store, hash-verified

82 unset_user_client.close()
83
84 def _assert_invalid_handle(self, fn):
85 """Assert that invoking fn() raises an ImpalaBeeswaxException with an invalid query
86 handle error."""
87 try:
88 fn()
89 assert False, "Expected invalid handle"
90 except IMPALA_CONNECTION_EXCEPTION as e:
91 assert "Query id" in str(e) and "not found" in str(e), str(e)
92
93 def _assert_profile_access_denied(self, fn):
94 """Assert that invoking fn() raises an ImpalaBeeswaxException with the error

Callers 1

test_user_validationMethod · 0.95

Calls 1

fnFunction · 0.50

Tested by

no test coverage detected