'Tests that invalid parameters are raised by the context manager
@since 3.7
@jira_ticket PYTHON-613
@expected_result a ValueError is raised when passing invalid parameters
@test_category query'

def test_context_invalid_parameters(self):

    with self.assertRaises(ValueError):
        with ContextQuery(keyspace='ks2'):
            pass
    with self.assertRaises(ValueError):
        with ContextQuery(42) as tm:
            pass
    with self.assertRaises(ValueError):
        with ContextQuery(TestModel, 42):
            pass
    with self.assertRaises(ValueError):
        with ContextQuery(TestModel, unknown_param=42):
            pass
    with self.assertRaises(ValueError):
        with ContextQuery(TestModel, keyspace='ks2', unknown_param=42):
            pass
