Beispiel #1
0
    def test_it_can_set_message(self):
        exc = exceptions.ServiceError('a message')

        assert 'a message' in repr(exc)
Beispiel #2
0
    def test_it_is_an_exception(self):
        exc = exceptions.ServiceError('a message')

        assert isinstance(exc, Exception)
        assert isinstance(exc, exceptions.ServiceError)
Beispiel #3
0
    def test_it_can_set_message(self):
        exc = exceptions.ServiceError("a message")

        assert "a message" in repr(exc)