removing obsolete tests

This commit is contained in:
Blake Eggleston
2013-10-25 16:02:00 -07:00
parent 1819912333
commit 74ed4f4d00

View File

@@ -116,39 +116,6 @@ class TestQuerySetOperation(BaseCassEngTestCase):
with self.assertRaises(query.QueryException):
TestModel.objects(5)
def test_filter_method_where_clause_generation(self):
"""
Tests the where clause creation
"""
query1 = TestModel.objects(test_id=5)
ids = [o.query_value.identifier for o in query1._where]
where = query1._where_clause()
assert where == '"test_id" = :{}'.format(*ids)
query2 = query1.filter(expected_result__gte=1)
ids = [o.query_value.identifier for o in query2._where]
where = query2._where_clause()
assert where == '"test_id" = :{} AND "expected_result" >= :{}'.format(*ids)
def test_query_expression_where_clause_generation(self):
"""
Tests the where clause creation
"""
query1 = TestModel.objects(TestModel.test_id == 5)
ids = [o.query_value.identifier for o in query1._where]
where = query1._where_clause()
assert where == '"test_id" = :{}'.format(*ids)
query2 = query1.filter(TestModel.expected_result >= 1)
ids = [o.query_value.identifier for o in query2._where]
where = query2._where_clause()
assert where == '"test_id" = :{} AND "expected_result" >= :{}'.format(*ids)
def test_querystring_generation(self):
"""
Tests the select querystring creation
"""
def test_queryset_is_immutable(self):
"""
Tests that calling a queryset function that changes it's state returns a new queryset