def METHOD_NAME(self):
    expected_stats = get_stats(
        0.1, 0.5, 1000 * 1024, Sandbox.EXIT_OK, stdout="o", stderr="你好")
    with patch("cms.grading.steps.compilation.generic_step",
               return_value=expected_stats) as mock_generic_step:
        success, compilation_success, text, stats = compilation_step(
            self.sandbox, TWO_COMMANDS)
    mock_generic_step.assert_called_once_with(
        self.sandbox, TWO_COMMANDS, "compilation", collect_output=True)
    self.assertLoggedError(False)
    self.assertTrue(success)
    self.assertTrue(compilation_success)
    self.assertEqual(text, [COMPILATION_MESSAGES.get("success").message])
    self.assertEqual(stats, expected_stats)