Exemple #1
0
    def test_it_extends_ServiceError(self):
        exc = exceptions.ConflictError('some message')

        assert isinstance(exc, exceptions.ConflictError)
        assert isinstance(exc, exceptions.ServiceError)
Exemple #2
0
    def test_it_can_set_message(self):
        exc = exceptions.ConflictError('a message')

        assert 'a message' in repr(exc)
Exemple #3
0
    def test_it_can_set_message(self):
        exc = exceptions.ConflictError("a message")

        assert "a message" in repr(exc)