Exemplo n.º 1
0
    def test_it_can_set_message(self):
        exc = exceptions.ServiceError('a message')

        assert 'a message' in repr(exc)
Exemplo n.º 2
0
    def test_it_is_an_exception(self):
        exc = exceptions.ServiceError('a message')

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

        assert "a message" in repr(exc)