

@mock.patch('traceback.format_exception', wraps=fake_format_exception)
def test_format_exception_info_error(self, mock_format_exception):
    (value, tb) = self._append_exc_info(ValueError)
    formatted = self.test_result.format_exception_info()
    mock_format_exception.assert_called_with(ValueError, value, tb, None)
    assert_equal(mock_format_exception, 'Traceback: ValueError\n')

dataset/ETHPy150Open Yelp/Testify/test/test_result_test.py TestResultTestCase.test_format_exception_info_error/VarMisuse@62/92 `formatted`->`mock_format_exception`