Esempio n. 1
0
 def test_add_model_config(self):
     controller.add_model(self.model1.info.name, {'run-faster': 'true'})
     self.Controller_mock.add_model.assert_called_once_with(
         self.model1.info.name, config={'run-faster': 'true'})
Esempio n. 2
0
 def test_add_model_config(self):
     self.patch_object(controller, 'go_list_models')
     controller.add_model(self.model1.info.name, {'run-faster': 'true'})
     self.Controller_mock.add_model.assert_called_once_with(
         self.model1.info.name, config={'run-faster': 'true'})
     self.go_list_models.assert_called_once()
Esempio n. 3
0
 def test_add_model(self):
     controller.add_model(self.model1.info.name)
     self.Controller_mock.add_model.assert_called_once_with(
         self.model1.info.name, config=None)
Esempio n. 4
0
 def test_add_model(self):
     self.patch_object(controller, 'go_list_models')
     controller.add_model(self.model1.info.name)
     self.Controller_mock.add_model.assert_called_once_with(
         self.model1.info.name, config=None)