def METHOD_NAME(self):
    """
    Test a custom CSP
    """
    tab = self.new_website_tab()
    tab.get_mode().custom_csp_checkbox.click()
    self.assertFalse(tab.get_mode().disable_csp_checkbox.isEnabled())
    tab.settings.set("website", "custom_csp", "default-src 'self'")
    self.run_all_website_mode_download_tests(tab)
    self.close_all_tabs()