def test_instance_is_returned(self):
        o = TestIfNotExistsModel.create(text="whatever")
        o.text = "new stuff"
        o = o.if_not_exists()
        self.assertEqual(True, o._if_not_exists)
ensures that we properly handle the instance.if_not_exists().save()
dataset/ETHPy150Open datastax/python-driver/tests/integration/cqlengine/test_ifnotexists.py/IfNotExistsInstanceTest.test_instance_is_returned