def METHOD_NAME(self):
    settings = self._create_importantpagesgenericsetting_object()
    # when called directly
    with self.assertRaises(AttributeError):
        settings.get_page_url("not_an_attribute")
    # when called indirectly via shortcut
    with self.assertRaises(AttributeError):
        settings.page_url.not_an_attribute