l.t.b.t.t.TestRobotsMixin : class documentation

Part of lp.translations.browser.tests.test_noindex View In Hierarchy

Known subclasses: lp.translations.browser.tests.test_noindex.TestRobotsDistro, lp.translations.browser.tests.test_noindex.TestRobotsDistroSeries, lp.translations.browser.tests.test_noindex.TestRobotsProduct, lp.translations.browser.tests.test_noindex.TestRobotsProductSeries, lp.translations.browser.tests.test_noindex.TestRobotsProjectGroup

Test the inclusion of the meta "noindex,nofollow" directives.

Subclasses using this mixin must set the following attributes: target - the pillar under test naked_translatable - the translatable object for the test, with the security proxy removed. It may be the target or a subordinate object. (For example when testing a ProjectGroup the translatable is one of the products in the project group.)

Method setUsage Undocumented
Method url Undocumented
Method user_browser Undocumented
Method getRenderedContents Return an initialized view's rendered contents.
Method getRobotsDirective Undocumented
Method verifyRobotsAreBlocked Undocumented
Method verifyRobotsNotBlocked Undocumented
Method test_robots Undocumented
def setUsage(self, usage):
Undocumented
@cachedproperty
def url(self):
Undocumented
@cachedproperty
def user_browser(self):
Undocumented
def getRenderedContents(self):
Return an initialized view's rendered contents.
def getRobotsDirective(self):
Undocumented
def verifyRobotsAreBlocked(self, usage):
Undocumented
def verifyRobotsNotBlocked(self, usage):
Undocumented
def test_robots(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.