'Run ``SAMPLE_SCRIPT_FILE`` with ``run_process`` and assert that
``CalledProcessError`` is raised.'

def check_run_process_error(self, expected_returncode):

    command = self.command_for_test(returncode=expected_returncode)
    e = self.assertRaises(CalledProcessError, run_process, command.commandline())
    self.assertEqual((command.commandline(), command.returncode, (command.stdout + command.stderr)), (e.cmd, e.returncode, e.output))
    self.assertIn((command.stdout + command.stderr), unicode(e))
