def test_progress(self, con):
     some_id = 'some id'
     some_dict = {"key": "value"}
     model = Model()
     response = Mock()
     response.json.return_value = some_dict
     con.return_value = response
     res = model.progress(some_id)
     self.assertEqual(res, some_dict)
 def test_progress_argument_type_error(self):
     model = Model()
     with self.assertRaises(QtArgumentError):
         model.progress(model_id=[])