def test_confirm_invalid(self):
        url, path = self._test_confirm_start()
        # Let's munge the token in the path, but keep the same length,
        # in case the URLconf will reject a different length.
        path = path[:-5] + ("0"*4) + path[-1]

        response = self.client.get(path)
        self.assertEquals(response.status_code, 200)
        self.assert_("The password reset link was invalid" in response.content)
dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/contrib/auth/tests/views.py/PasswordResetTest.test_confirm_invalid/original