def METHOD_NAME(self, mock):
    instance = mock.return_value
    instance.wait.return_value = 0
    instance.communicate.return_value = (self.output_ok, '')
    ep = ExecProvider(self.input_ok, '/some/directory')
    ep.run()
    self.assertEqual(mock.call_args[1]['cwd'], '/some/directory')