'Test to ensure that the iff method is honored if it\'s called
directly from the Model class
@jira_ticket PYTHON-505
@expected_result the value is updated
@test_category object_mapper'

def test_conditional_without_instance(self):

    uuid = uuid4()
    TestConditionalModel.create(id=uuid, text='test_for_cassandra', count=5)
    TestConditionalModel.iff(count=5).filter(id=uuid).update(text=None, count=6)
    t = TestConditionalModel.filter(id=uuid).first()
    self.assertIsNone(t.text)
    self.assertEqual(t.count, 6)
