'Test that map item removal with update(<columnname>__remove=...) works
@jira_ticket PYTHON-688'

@greaterthancass20
@execute_count(5)
def test_map_update_remove(self):

    partition = uuid4()
    cluster = 1
    TestQueryUpdateModel.objects.create(partition=partition, cluster=cluster, text_map={'foo': '1', 'bar': '2'})
    TestQueryUpdateModel.objects(partition=partition, cluster=cluster).update(text_map__remove={'bar'}, text_map__update={'foz': '4', 'foo': '2'})
    obj = TestQueryUpdateModel.objects.get(partition=partition, cluster=cluster)
    self.assertEqual(obj.text_map, {'foo': '2', 'foz': '4'})
    TestQueryUpdateModel.objects(partition=partition, cluster=cluster).update(text_map__remove={'foo', 'foz'})
    self.assertEqual(TestQueryUpdateModel.objects.get(partition=partition, cluster=cluster).text_map, {})
