diff --git a/tests/integration/cqlengine/operators/test_where_operators.py b/tests/integration/cqlengine/operators/test_where_operators.py index f297d248..0683d390 100644 --- a/tests/integration/cqlengine/operators/test_where_operators.py +++ b/tests/integration/cqlengine/operators/test_where_operators.py @@ -39,7 +39,7 @@ class TestWhereOperators(TestCase): def test_operator_rendering(self): """ tests symbols are rendered properly """ self.assertEqual("=", six.text_type(EqualsOperator())) - self.assertEqual("=!", six.text_type(NotEqualsOperator())) + self.assertEqual("!=", six.text_type(NotEqualsOperator())) self.assertEqual("IN", six.text_type(InOperator())) self.assertEqual(">", six.text_type(GreaterThanOperator())) self.assertEqual(">=", six.text_type(GreaterThanOrEqualOperator())) diff --git a/tests/integration/cqlengine/test_lwt_conditional.py b/tests/integration/cqlengine/test_lwt_conditional.py index 27174156..d273df9c 100644 --- a/tests/integration/cqlengine/test_lwt_conditional.py +++ b/tests/integration/cqlengine/test_lwt_conditional.py @@ -27,7 +27,7 @@ from cassandra.cqlengine.query import BatchQuery, LWTException from cassandra.cqlengine.statements import ConditionalClause from tests.integration.cqlengine.base import BaseCassEngTestCase -from tests.integration import CASSANDRA_VERSION +from tests.integration import CASSANDRA_VERSION, greaterthancass20 class TestConditionalModel(Model): @@ -154,6 +154,7 @@ class TestConditional(BaseCassEngTestCase): TestConditionalModel.objects(id=t.id).iff(count=5).delete() self.assertEqual(TestConditionalModel.objects(id=t.id).count(), 0) + @greaterthancass20 def test_delete_lwt_ne(self): """ Test to ensure that deletes using IF and not equals are honored correctly @@ -181,6 +182,7 @@ class TestConditional(BaseCassEngTestCase): TestConditionalModel.objects(id=t.id).iff(count__ne=2).delete() self.assertEqual(TestConditionalModel.objects(id=t.id).count(), 0) + @greaterthancass20 def test_update_lwt_ne(self): """ Test to ensure that update using IF and not equals are honored correctly