def test_clone(self, con):
     some_id = 'some id'
     some_dict = {
         'title': "some title",
         'excludeUttWithoutEntities': True,
         'searchDictionaries': [],
         'files': 'some files',
         'chunk': 'PAGE',
         'numWorkers': 8
     }
     some_response = "some id, {'title': 'some title', 'excludeUttWithoutEntities': True, 'numWorkers': 8, " \
                     "'chunk': 'PAGE', 'searchDictionaries': [], 'files': 'some files'}"
     some_list = ['123']
     model = Model()
     model.with_documents(some_list)
     response = Mock()
     response.json.return_value = some_dict
     con.return_value = response
     res = model.clone(some_id)
     self.assertEqual(str(res), some_response)
 def test_clone_tag_files_empty(self):
     model = Model()
     mod_id = 'some id'
     with self.assertRaises(QtModelError):
         model.clone(mod_id)
 def test_clone_model_id_arg_err(self):
     model = Model()
     with self.assertRaises(QtArgumentError):
         model.clone(model_id=[])