def test_snapcraft_exception_minimal(self): exception = TestSnapcraftException() exception._brief = "something's strange, in the neighborhood" exception._resolution = "" _print_exception_message(exception) self.error_mock.assert_called_once_with( """something's strange, in the neighborhood""")
def test_snapcraft_exception_minimal_with_resolution(self): exception = TestSnapcraftException() exception._brief = "something's strange, in the neighborhood" exception._resolution = "who you gonna call? ghostbusters!!" _print_exception_message(exception) self.error_mock.assert_called_once_with( """something's strange, in the neighborhood Recommended resolution: who you gonna call? ghostbusters!!""")
def test_snapcraft_exception_minimal_with_resolution_and_url(self): exception = TestSnapcraftException() exception._brief = "something's strange, in the neighborhood" exception._resolution = "who you gonna call? ghostbusters!!" exception._docs_url = "https://docs.snapcraft.io/the-snapcraft-format/8337" _print_exception_message(exception) self.error_mock.assert_called_once_with( """something's strange, in the neighborhood Recommended resolution: who you gonna call? ghostbusters!! For more information, check out: https://docs.snapcraft.io/the-snapcraft-format/8337""")
def test_snapcraft_exception_format_all(self): exception = SnapcraftTException() exception._brief = "something's strange, in the neighborhood" exception._resolution = "who you gonna call? ghostbusters!!" exception._details = "i ain't afraid of no ghosts" exception._docs_url = "https://docs.snapcraft.io/the-snapcraft-format/8337" _print_exception_message(exception) self.error_mock.assert_called_once_with( """something's strange, in the neighborhood Recommended resolution: who you gonna call? ghostbusters!! Detailed information: i ain't afraid of no ghosts For more information, check out: https://docs.snapcraft.io/the-snapcraft-format/8337""")