def test_it_extends_ServiceError(self): exc = exceptions.ConflictError('some message') assert isinstance(exc, exceptions.ConflictError) assert isinstance(exc, exceptions.ServiceError)
def test_it_can_set_message(self): exc = exceptions.ConflictError('a message') assert 'a message' in repr(exc)
def test_it_can_set_message(self): exc = exceptions.ConflictError("a message") assert "a message" in repr(exc)