def METHOD_NAME(self):
    """
    Test that we can make a successful password change via the update form
    """
    # Check out that it works as expected, notice that there is no referrer
    # on this GET request.
    self.client.get(
        resolve_url(
            "wiki:profile_update",
        )
    )
    # Now check that we don't succeed with unmatching passwords
    example_data = {
        "password1": "abcdef",
        "password2": "abcdef123",
        "email": self.superuser1.email,
    }
    # save a new revision
    response = self.client.post(resolve_url("wiki:profile_update"), example_data)
    self.assertContains(
        response, "Passwords don", status_code=200
    )  # Django 2/3 output different escaped versions of single quote in don't
    # Now check that we don't succeed with unmatching passwords
    example_data = {
        "password1": "abcdef",
        "password2": "abcdef",
        "email": self.superuser1.email,
    }
    # save a new revision
    response = self.client.post(resolve_url("wiki:profile_update"), example_data)
    # Need to force str() because of:
    # TypeError: coercing to Unicode: need string or buffer, __proxy__
    # found
    self.assertRedirects(response, str(django_settings.LOGIN_REDIRECT_URL))
    self.assertEqual(
        self.superuser1,
        authenticate(
            username=self.superuser1.username, password=example_data["password1"]
        ),
    )