def METHOD_NAME(self):
    """
    Nominal case: existing username, correct password, activated user, 'remember me' checked.
    Expected: successful login, redirect to homepage, session expiration age set.
    """
    result = self.client.post(
        self.login_url,
        {
            "username": self.correct_username,
            "password": self.correct_password,
            "remember": "remember",
        },
        follow=False,
        REMOTE_ADDR=self.test_ip,
    )
    self.assertRedirects(result, reverse("homepage"))
    # Check cookie setting
    self.assertFalse(self.client.session.get_expire_at_browser_close())
    self.assertEqual(self.client.session.get_expiry_age(), settings.SESSION_COOKIE_AGE)
    # Check IP recording
    profile = Profile.objects.get(user=self.profile.user)
    self.assertEqual(profile.last_ip_address, self.test_ip)