'tests calling udpate on a queryset'

@execute_count(8)
def test_update_values(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)
    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, str(i))
