def METHOD_NAME(self):
    self.client.post(
        reverse("wagtailadmin_login"),
        {"username": "test@email.com", "password": "password", "remember": True},
    )
    self.assertFalse(self.client.session.get_expire_at_browser_close())
    self.assertEqual(self.client.session.get_expiry_age(), 7)