def METHOD_NAME(self):
    """
    Assert that the cookie notice is no longer visible once the user accepted or
    rejected them.
    """
    with self.subTest(action="accept"):
        form_page = self.app.get(self.url)
        accept_form = form_page.forms[0]
        assert "accept" in accept_form.action
        refreshed_form_page = accept_form.submit().follow()
        self.assertEqual(refreshed_form_page.request.path, self.url)
        self.assertFalse(refreshed_form_page.pyquery(".cookie-notice"))
    self.renew_app()
    with self.subTest(action="decline"):
        form_page = self.app.get(self.url)
        decline_form = form_page.forms[1]
        assert "decline" in decline_form.action
        refreshed_form_page = decline_form.submit().follow()
        self.assertEqual(refreshed_form_page.request.path, self.url)
        self.assertFalse(refreshed_form_page.pyquery(".cookie-notice"))