'Tests that explcit none updates are processed correctly on tuples
@since 3.1
@jira_ticket PYTHON-478
@expected_result nested collection is replaced with none
@test_category object_mapper'

def test_update_from_non_empty_to_empty(self):

    list_list_initial = [[1, 2, 3], [2, 3, 4], [3, 4, 5]]
    map_list_initial = {'key1': ['text1', 'text2', 'text3'], 'key2': ['text1', 'text2', 'text3'], 'key3': ['text1', 'text2', 'text3']}
    set_tuple_initial = set(((1, 2), (3, 5), (4, 5)))
    tmp = TestNestedModel.create(list_list=list_list_initial, map_list=map_list_initial, set_tuple=set_tuple_initial)
    tmp.list_list = []
    tmp.map_list = {}
    tmp.set_tuple = set()
    tmp.update()
    tmp = TestNestedModel.get(partition=tmp.partition)
    self.assertEqual(tmp.list_list, [])
    self.assertEqual(tmp.map_list, {})
    self.assertEqual(tmp.set_tuple, set())
