def METHOD_NAME(self, mock):
    instance = mock.return_value
    instance.wait.return_value = 1
    instance.communicate.return_value = ('', '')
    with self.assertRaises(ConfigException) as context:
        ep = ExecProvider(self.input_ok, None)
        ep.run()
    self.assertIn('exec: process returned %d' %
                  instance.wait.return_value, context.exception.args[0])