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