Module TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Assert CompareEq Call NameLoad AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assert Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assert CompareEq Call NameLoad AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assert Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assert CompareEq Call NameLoad AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assert Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr CompareGtE Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assert CompareEq Call NameLoad AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assert Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr CompareGtE Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr ImportFrom alias Assign TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assert CompareEq Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Assert CompareEq Call AttributeLoad NameLoad attr Num decorator_list Call NameLoad Num FunctionDef arguments args NameParam defaults body Expr Str Assert CompareEq Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assert CompareEq Call AttributeLoad NameLoad attr Num decorator_list Call NameLoad Num FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Assign NameStore Call NameLoad ListLoad TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num For NameStore NameLoad body Assign NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareIn NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assert CompareEq Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num attr Assert CompareEq Call NameLoad NameLoad Num Assign NameStore Call NameLoad ListLoad TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num For NameStore NameLoad body Assign NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareIn NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assert CompareEq Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Num attr Assert CompareEq Call NameLoad NameLoad Num Assign NameStore Call NameLoad ListLoad TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num For NameStore NameLoad body Assign NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareIn NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assert CompareEq Call NameLoad NameLoad Num decorator_list Call NameLoad Num FunctionDef arguments args NameParam defaults body Expr Str For NameStore TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Num body Assign NameStore Call NameLoad ListLoad TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num For NameStore NameLoad body Assign NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareIn NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assert CompareEq Call NameLoad NameLoad Num Assign NameStore Call NameLoad ListLoad TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num For NameStore NameLoad body Assign NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareIn NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assert CompareEq Call NameLoad NameLoad Num decorator_list Call NameLoad Num FunctionDef arguments args NameParam defaults body Expr Str For NameStore TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Num body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Num Num Num Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad For NameStore NameLoad body Assert CompareEq AttributeLoad Call NameLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad Call NameLoad NameLoad attr NameLoad decorator_list Call NameLoad Num FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Num keyword Num Assert Call NameLoad NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr Assert Call NameLoad NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assert Call NameLoad NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num decorator_list Call NameLoad Num FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Num CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assert Call NameLoad NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Num CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign NameStore Call AttributeLoad NameLoad attr Assert Call NameLoad NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign NameStore Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assert Call NameLoad NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num decorator_list Call NameLoad Num FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Num decorator_list Call NameLoad Num FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Num decorator_list Call NameLoad Num decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad Assign NameStore Set TupleLoad Str Str Num Num Num Num TupleLoad Str Str Num Num Num Num TupleLoad Str Str Num Num Num Num TupleLoad Str Str Num Num Num Num TupleLoad Str Str Num Num Num Num TupleLoad Str Str Num Num Num Num TupleLoad Str Str Num Num Num Num TupleLoad Str Str Num Num Num Num TupleLoad Str Str Num Num Num Num TupleLoad Str Str Num Num Num Num TupleLoad Str Str Num Num Num Num TupleLoad Str Str Num Num Num Num Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Num keyword Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Num decorator_list NameLoad Call NameLoad Num FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num While CompareLt NameLoad Num body AugAssignAdd NameStore Num Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIsNot NameLoad NameLoad body Print Call AttributeLoad Str attr NameLoad NameLoad NameLoad orelse Return NameLoad Return NameLoad decorator_list decorator_list
N/A N/A N/A N/A unittest2 unittest N/A N/A N/A ImportError N/A N/A unittest cassandra ConsistencyLevel cassandra.cqlengine operators cassandra.cqlengine.named NamedKeyspace cassandra.cqlengine.operators EqualsOperator GreaterThanOrEqualOperator cassandra.cqlengine.query ResultObject cassandra.concurrent execute_concurrent_with_args cassandra.cqlengine models tests.integration.cqlengine setup_connection execute_count tests.integration.cqlengine.base BaseCassEngTestCase tests.integration.cqlengine.query.test_queryset BaseQuerySetUsage tests.integration BasicSharedKeyspaceUnitTestCase greaterthanorequalcass30 TestQuerySetOperation N/A BaseCassEngTestCase N/A setUpClass N/A N/A cls N/A N/A N/A N/A N/A N/A super TestQuerySetOperation cls setUpClass N/A N/A cls keyspace N/A NamedKeyspace cqlengine_test N/A N/A cls table N/A N/A N/A cls keyspace table test_model N/A classmethod test_query_filter_parsing N/A N/A self N/A N/A N/A 
        Tests the queryset filter method parses it's kwargs properly
         N/A query1 N/A N/A N/A self table objects test_id 5 N/A N/A N/A len N/A query1 _where 1 N/A op N/A N/A query1 _where N/A 0 N/A N/A isinstance N/A op operator N/A operators EqualsOperator N/A N/A N/A op value 5 N/A query2 N/A N/A query1 filter expected_result__gte 1 N/A N/A N/A len N/A query2 _where 2 N/A op N/A N/A query2 _where N/A 1 N/A N/A isinstance N/A op operator N/A operators GreaterThanOrEqualOperator N/A N/A N/A op value 1 N/A test_query_expression_parsing N/A N/A self N/A N/A N/A  Tests that query experessions are evaluated properly  N/A query1 N/A N/A N/A self table filter N/A N/A N/A N/A self table column test_id 5 N/A N/A N/A len N/A query1 _where 1 N/A op N/A N/A query1 _where N/A 0 N/A N/A isinstance N/A op operator N/A operators EqualsOperator N/A N/A N/A op value 5 N/A query2 N/A N/A query1 filter N/A N/A N/A N/A self table column expected_result 1 N/A N/A N/A len N/A query2 _where 2 N/A op N/A N/A query2 _where N/A 1 N/A N/A isinstance N/A op operator N/A operators GreaterThanOrEqualOperator N/A N/A N/A op value 1 N/A test_filter_method_where_clause_generation N/A N/A self N/A N/A N/A 
        Tests the where clause creation
         N/A query1 N/A N/A N/A self table objects test_id 5 N/A N/A N/A self assertEqual N/A len N/A query1 _where 1 N/A where N/A N/A query1 _where N/A 0 N/A N/A N/A self assertEqual N/A where field test_id N/A N/A N/A self assertEqual N/A where value 5 N/A query2 N/A N/A query1 filter expected_result__gte 1 N/A N/A N/A self assertEqual N/A len N/A query2 _where 2 N/A where N/A N/A query2 _where N/A 0 N/A N/A N/A self assertEqual N/A where field test_id N/A N/A N/A self assertIsInstance N/A where operator EqualsOperator N/A N/A N/A self assertEqual N/A where value 5 N/A where N/A N/A query2 _where N/A 1 N/A N/A N/A self assertEqual N/A where field expected_result N/A N/A N/A self assertIsInstance N/A where operator GreaterThanOrEqualOperator N/A N/A N/A self assertEqual N/A where value 1 N/A test_query_expression_where_clause_generation N/A N/A self N/A N/A N/A 
        Tests the where clause creation
         N/A query1 N/A N/A N/A self table objects N/A N/A N/A N/A self table column test_id 5 N/A N/A N/A self assertEqual N/A len N/A query1 _where 1 N/A where N/A N/A query1 _where N/A 0 N/A N/A N/A self assertEqual N/A where field test_id N/A N/A N/A self assertEqual N/A where value 5 N/A query2 N/A N/A query1 filter N/A N/A N/A N/A self table column expected_result 1 N/A N/A N/A self assertEqual N/A len N/A query2 _where 2 N/A where N/A N/A query2 _where N/A 0 N/A N/A N/A self assertEqual N/A where field test_id N/A N/A N/A self assertIsInstance N/A where operator EqualsOperator N/A N/A N/A self assertEqual N/A where value 5 N/A where N/A N/A query2 _where N/A 1 N/A N/A N/A self assertEqual N/A where field expected_result N/A N/A N/A self assertIsInstance N/A where operator GreaterThanOrEqualOperator N/A N/A N/A self assertEqual N/A where value 1 N/A N/A TestQuerySetCountSelectionAndIteration N/A BaseQuerySetUsage N/A setUpClass N/A N/A cls N/A N/A N/A N/A N/A N/A super TestQuerySetCountSelectionAndIteration cls setUpClass tests.integration.cqlengine.query.test_queryset TestModel N/A N/A ks tn N/A N/A N/A N/A TestModel column_family_name split . N/A N/A cls keyspace N/A NamedKeyspace ks N/A N/A cls table N/A N/A N/A cls keyspace table tn N/A classmethod test_count N/A N/A self N/A N/A N/A  Tests that adding filtering statements affects the count query as expected  N/A N/A N/A N/A N/A N/A self table objects count 12 N/A q N/A N/A N/A self table objects test_id 0 N/A N/A N/A N/A q count 4 N/A N/A execute_count 2 test_query_expression_count N/A N/A self N/A N/A N/A  Tests that adding query statements affects the count query as expected  N/A N/A N/A N/A N/A N/A self table objects count 12 N/A q N/A N/A N/A self table objects N/A N/A N/A N/A self table column test_id 0 N/A N/A N/A N/A q count 4 N/A N/A execute_count 2 test_iteration N/A N/A self N/A N/A N/A  Tests that iterating over a query set pulls back all of the expected results  N/A q N/A N/A N/A self table objects test_id 0 N/A compare_set N/A set N/A N/A 0 5 N/A 1 10 N/A 2 15 N/A 3 20 N/A t q N/A N/A val N/A N/A t attempt_id N/A t expected_result N/A N/A val compare_set N/A N/A N/A compare_set remove val N/A N/A N/A len compare_set 0 N/A q N/A N/A N/A N/A N/A self table objects attempt_id 3 allow_filtering N/A N/A N/A len q 3 N/A compare_set N/A set N/A N/A 0 20 N/A 1 20 N/A 2 75 N/A t q N/A N/A val N/A N/A t test_id N/A t expected_result N/A N/A val compare_set N/A N/A N/A compare_set remove val N/A N/A N/A len compare_set 0 N/A q N/A N/A N/A N/A N/A self table objects N/A N/A N/A N/A self table column attempt_id 3 allow_filtering N/A N/A N/A len q 3 N/A compare_set N/A set N/A N/A 0 20 N/A 1 20 N/A 2 75 N/A t q N/A N/A val N/A N/A t test_id N/A t expected_result N/A N/A val compare_set N/A N/A N/A compare_set remove val N/A N/A N/A len compare_set 0 N/A N/A execute_count 3 test_multiple_iterations_work_properly N/A N/A self N/A N/A N/A  Tests that iterating over a query set more than once works  N/A q N/A N/A N/A N/A self table objects test_id 0 N/A N/A N/A self table objects N/A N/A N/A N/A self table column test_id 0 N/A N/A compare_set N/A set N/A N/A 0 5 N/A 1 10 N/A 2 15 N/A 3 20 N/A t q N/A N/A val N/A N/A t attempt_id N/A t expected_result N/A N/A val compare_set N/A N/A N/A compare_set remove val N/A N/A N/A len compare_set 0 N/A compare_set N/A set N/A N/A 0 5 N/A 1 10 N/A 2 15 N/A 3 20 N/A t q N/A N/A val N/A N/A t attempt_id N/A t expected_result N/A N/A val compare_set N/A N/A N/A compare_set remove val N/A N/A N/A len compare_set 0 N/A N/A execute_count 2 test_multiple_iterators_are_isolated N/A N/A self N/A N/A N/A 
        tests that the use of one iterator does not affect the behavior of another
         N/A q N/A N/A N/A N/A self table objects test_id 0 N/A N/A N/A self table objects N/A N/A N/A N/A self table column test_id 0 N/A N/A q N/A N/A q order_by attempt_id N/A expected_order N/A 0 1 2 3 N/A iter1 N/A iter q N/A iter2 N/A iter q N/A attempt_id expected_order N/A N/A N/A N/A N/A next iter1 attempt_id attempt_id N/A N/A N/A N/A next iter2 attempt_id attempt_id N/A N/A execute_count 2 test_get_success_case N/A N/A self N/A N/A N/A 
        Tests that the .get() method works on new and existing querysets
         N/A m N/A N/A N/A N/A self table objects get test_id 0 attempt_id 0 N/A N/A isinstance m ResultObject N/A N/A N/A m test_id 0 N/A N/A N/A m attempt_id 0 N/A q N/A N/A N/A self table objects test_id 0 attempt_id 0 N/A m N/A N/A q get N/A N/A isinstance m ResultObject N/A N/A N/A m test_id 0 N/A N/A N/A m attempt_id 0 N/A q N/A N/A N/A self table objects test_id 0 N/A m N/A N/A q get attempt_id 0 N/A N/A isinstance m ResultObject N/A N/A N/A m test_id 0 N/A N/A N/A m attempt_id 0 N/A N/A execute_count 3 test_query_expression_get_success_case N/A N/A self N/A N/A N/A 
        Tests that the .get() method works on new and existing querysets
         N/A m N/A N/A N/A self table get N/A N/A N/A N/A self table column test_id 0 N/A N/A N/A N/A self table column attempt_id 0 N/A N/A isinstance m ResultObject N/A N/A N/A m test_id 0 N/A N/A N/A m attempt_id 0 N/A q N/A N/A N/A self table objects N/A N/A N/A N/A self table column test_id 0 N/A N/A N/A N/A self table column attempt_id 0 N/A m N/A N/A q get N/A N/A isinstance m ResultObject N/A N/A N/A m test_id 0 N/A N/A N/A m attempt_id 0 N/A q N/A N/A N/A self table objects N/A N/A N/A N/A self table column test_id 0 N/A m N/A N/A q get N/A N/A N/A N/A self table column attempt_id 0 N/A N/A isinstance m ResultObject N/A N/A N/A m test_id 0 N/A N/A N/A m attempt_id 0 N/A N/A execute_count 3 test_get_doesnotexist_exception N/A N/A self N/A N/A N/A 
        Tests that get calls that don't return a result raises a DoesNotExist error
         N/A N/A N/A self assertRaises N/A N/A self table DoesNotExist N/A N/A N/A N/A N/A N/A self table objects get test_id 100 N/A N/A execute_count 1 test_get_multipleobjects_exception N/A N/A self N/A N/A N/A 
        Tests that get calls that return multiple results raise a MultipleObjectsReturned error
         N/A N/A N/A self assertRaises N/A N/A self table MultipleObjectsReturned N/A N/A N/A N/A N/A N/A self table objects get test_id 1 N/A N/A execute_count 1 N/A TestNamedWithMV N/A BasicSharedKeyspaceUnitTestCase N/A setUpClass N/A N/A cls N/A N/A N/A N/A N/A N/A super TestNamedWithMV cls setUpClass N/A N/A cls default_keyspace N/A models DEFAULT_KEYSPACE N/A N/A models DEFAULT_KEYSPACE N/A cls ks_name N/A classmethod tearDownClass N/A N/A cls N/A N/A N/A N/A models DEFAULT_KEYSPACE N/A cls default_keyspace N/A N/A setup_connection N/A models DEFAULT_KEYSPACE N/A N/A N/A N/A super TestNamedWithMV cls tearDownClass N/A classmethod test_named_table_with_mv N/A N/A self N/A N/A N/A 
        Test NamedTable access to materialized views

        Creates some materialized views using Traditional CQL. Then ensures we can access those materialized view using
        the NamedKeyspace, and NamedTable interfaces. Tests basic filtering as well.

        @since 3.0.0
        @jira_ticket PYTHON-406
        @expected_result Named Tables should have access to materialized views

        @test_category materialized_view
         N/A ks N/A models DEFAULT_KEYSPACE N/A N/A N/A N/A self session execute N/A N/A DROP MATERIALIZED VIEW IF EXISTS {0}.alltimehigh format ks N/A N/A N/A N/A self session execute N/A N/A DROP MATERIALIZED VIEW IF EXISTS {0}.monthlyhigh format ks N/A N/A N/A N/A self session execute N/A N/A DROP TABLE IF EXISTS {0}.scores format ks N/A create_table N/A N/A CREATE TABLE {0}.scores(
                        user TEXT,
                        game TEXT,
                        year INT,
                        month INT,
                        day INT,
                        score INT,
                        PRIMARY KEY (user, game, year, month, day)
                        ) format ks N/A N/A N/A N/A self session execute create_table N/A create_mv N/A N/A CREATE MATERIALIZED VIEW {0}.monthlyhigh AS
                        SELECT game, year, month, score, user, day FROM {0}.scores
                        WHERE game IS NOT NULL AND year IS NOT NULL AND month IS NOT NULL AND score IS NOT NULL AND user IS NOT NULL AND day IS NOT NULL
                        PRIMARY KEY ((game, year, month), score, user, day)
                        WITH CLUSTERING ORDER BY (score DESC, user ASC, day ASC) format ks N/A N/A N/A N/A self session execute create_mv N/A create_mv_alltime N/A N/A CREATE MATERIALIZED VIEW {0}.alltimehigh AS
                        SELECT * FROM {0}.scores
                        WHERE game IS NOT NULL AND score IS NOT NULL AND user IS NOT NULL AND year IS NOT NULL AND month IS NOT NULL AND day IS NOT NULL
                        PRIMARY KEY (game, score, user, year, month, day)
                        WITH CLUSTERING ORDER BY (score DESC) format ks N/A N/A N/A N/A self session execute create_mv_alltime N/A prepared_insert N/A N/A N/A self session prepare N/A N/A INSERT INTO {0}.scores (user, game, year, month, day, score) VALUES  (?, ?, ? ,? ,?, ?) format ks N/A parameters N/A N/A pcmanus Coup 2015 5 1 4000 N/A jbellis Coup 2015 5 3 1750 N/A yukim Coup 2015 5 3 2250 N/A tjake Coup 2015 5 3 500 N/A iamaleksey Coup 2015 6 1 2500 N/A tjake Coup 2015 6 2 1000 N/A pcmanus Coup 2015 6 2 2000 N/A jmckenzie Coup 2015 6 9 2700 N/A jbellis Coup 2015 6 20 3500 N/A jbellis Checkers 2015 6 20 1200 N/A jbellis Chess 2015 6 21 3500 N/A pcmanus Chess 2015 1 25 3200 N/A N/A prepared_insert consistency_level N/A ConsistencyLevel ALL N/A N/A execute_concurrent_with_args N/A self session prepared_insert parameters N/A key_space N/A NamedKeyspace ks N/A mv_monthly N/A N/A key_space table monthlyhigh N/A mv_all_time N/A N/A key_space table alltimehigh N/A N/A N/A self assertTrue N/A N/A self check_table_size scores key_space N/A len parameters N/A N/A N/A self assertTrue N/A N/A self check_table_size monthlyhigh key_space N/A len parameters N/A N/A N/A self assertTrue N/A N/A self check_table_size alltimehigh key_space N/A len parameters N/A filtered_mv_monthly_objects N/A N/A N/A mv_monthly objects filter game Chess year 2015 month 6 N/A N/A N/A self assertEqual N/A len filtered_mv_monthly_objects 1 N/A N/A N/A self assertEqual N/A N/A filtered_mv_monthly_objects N/A 0 N/A score 3500 N/A N/A N/A self assertEqual N/A N/A filtered_mv_monthly_objects N/A 0 N/A user jbellis N/A filtered_mv_alltime_objects N/A N/A N/A mv_all_time objects filter game Chess N/A N/A N/A self assertEqual N/A len filtered_mv_alltime_objects 2 N/A N/A N/A self assertEqual N/A N/A filtered_mv_alltime_objects N/A 0 N/A score 3500 N/A greaterthanorequalcass30 N/A execute_count 5 check_table_size N/A N/A self table_name key_space expected_size N/A N/A N/A table N/A N/A key_space table table_name N/A attempts 0 N/A N/A attempts 10 N/A N/A attempts 1 N/A table_size N/A len N/A N/A N/A table objects all N/A N/A table_size expected_size N/A N/A N/A N/A Table {0} size was {1} and was expected to be {2} format table_name table_size expected_size N/A N/A True N/A False N/A N/A