'tests that updating a columns value, and removing another works properly'

@execute_count(9)
def test_mixed_value_and_null_update(self):

    partition = uuid4()
    for i in range(5):
        TestQueryUpdateModel.create(partition=partition, cluster=i, count=i, text=str(i))
    for (i, row) in enumerate(TestQueryUpdateModel.objects(partition=partition)):
        self.assertEqual(row.cluster, i)
        self.assertEqual(row.count, i)
        self.assertEqual(row.text, str(i))
    TestQueryUpdateModel.objects(partition=partition, cluster=3).update(count=6, text=None)
    for (i, row) in enumerate(TestQueryUpdateModel.objects(partition=partition)):
        self.assertEqual(row.cluster, i)
        self.assertEqual(row.count, (6 if (i == 3) else i))
        self.assertEqual(row.text, (None if (i == 3) else str(i)))
