def METHOD_NAME(self):
    """Test what happens if an exception is raised during the
    creation of a profile_document.
    """
    class BadStorage(MockProfileStorage):
        @property
        def profile_document(self):
            raise Exception("Oh no")
    self.controller.storage = BadStorage()
    problem = self.controller.get()
    assert 500 == problem.status_code
    assert "Oh no" == problem.debug_message