def METHOD_NAME(self):
    """
    Check that the menu search area on the dashboard is not searching
    pages, as they are not allowed.
    """
    response = self.client.get("/admin/")
    # The menu search bar should go to /customsearch/, not /admin/pages/search/
    self.assertNotContains(response, reverse("wagtailadmin_pages:search"))
    self.assertContains(
        response,
        '{"_type": "wagtail.sidebar.SearchModule", "_args": ["/customsearch/"]}',
    )