'setting a field to null in the update should issue a delete statement'

@execute_count(8)
def test_null_update_deletes_column(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(text=None)
    for (i, row) in enumerate(TestQueryUpdateModel.objects(partition=partition)):
        self.assertEqual(row.cluster, i)
        self.assertEqual(row.count, i)
        self.assertEqual(row.text, (None if (i == 3) else str(i)))
