*quitely shakes fist and then submits*
This commit is contained in:
Daniel Karbach 2016-10-28 11:23:05 +02:00
parent 6fff45daeb
commit cfa9068eed

View File

@ -75,9 +75,9 @@ def test_debug_trace(mocker):
utilcmds.debug_trace(1) utilcmds.debug_trace(1)
assert hunter_mock.trace.assert_called_with(1) assert hunter_mock.trace.assert_called_with(1)
def test_debug_trace_exception(mocker): def test_debug_trace_exception(mocker):
"""Check that exceptions thrown by hunter.trace are handled.""" """Check that exceptions thrown by hunter.trace are handled."""
def _mock_exception(): def _mock_exception():
"""Side effect for testing debug_trace's reraise.""" """Side effect for testing debug_trace's reraise."""
raise Exception('message') raise Exception('message')