'Tests creation and insertion of various nested collection types with models,
and their retrieval.
@since 3.1
@jira_ticket PYTHON-378
@expected_result Model is successfully created and fetched correctly
@test_category object_mapper'

def test_io_success(self):

    list_list_master = [[1, 2, 3], [2, 3, 4], [3, 4, 5]]
    map_list_master = {'key1': ['text1', 'text2', 'text3'], 'key2': ['text1', 'text2', 'text3'], 'key3': ['text1', 'text2', 'text3']}
    set_tuple_master = set(((1, 2), (3, 5), (4, 5)))
    m1 = TestNestedModel.create(list_list=list_list_master, map_list=map_list_master, set_tuple=set_tuple_master)
    m2 = TestNestedModel.get(partition=m1.partition)
    self.assertIsInstance(m2.list_list, list)
    self.assertIsInstance(m2.list_list[0], list)
    self.assertIsInstance(m2.map_list, dict)
    self.assertIsInstance(m2.map_list.get('key2'), list)
    self.assertEqual(list_list_master, m2.list_list)
    self.assertEqual(map_list_master, m2.map_list)
    self.assertEqual(set_tuple_master, m2.set_tuple)
    self.assertIsInstance(m2.set_tuple.pop(), tuple)
