'Tests if the "change password" link in the admin is hidden if the User
does not have a usable password set.
(against 9bea85795705d015cdadc82c68b99196a8554f5c)'

def test_hide_change_password(self):

    user = User.objects.get(username=u'super')
    password = user.password
    user.set_unusable_password()
    user.save()
    response = self.client.get(u'/test_admin/admin/')
    self.assertNotContains(response, reverse(u'admin:password_change'), msg_prefix=u'The    "change    password"    link    should    not    be    displayed    if    a    user    does    not    have    a    usable    password.')
