l.t.branding : module documentation

Part of lp.testing

No module docstring
Function set_branding Set the icon, logo and mugshot fields on the given browser instance.
def set_branding(browser, icon=True, logo=True, mugshot=True):
Set the icon, logo and mugshot fields on the given browser instance.

Setting any of the image parameters to False will NOT set that particular item. This allows us to use the function to test branding on IPerson and ISprint which do not allow the setting of custom icons.

This function expects that the given browser instance contains a set of field.icon, field.logo and field.mugshot fields, as generated by an ImageChangeWidget.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.