Example #1
0
 def test_do_prepare(self, check_status_mock, start_async_task_mock):
     env = EnvCommand()
     env.do_prepare({})
     start_async_task_mock.assert_called_once()
     check_status_mock.assert_called_once()
Example #2
0
 def test_do_prepare(self, check_status_mock, start_async_task_mock):
     env = EnvCommand()
     env.do_prepare({})
     self.assertTrue(start_async_task_mock.called)
     self.assertTrue(check_status_mock.called)