'Test logging in as a user with PASSWORD_DISABLED doesn\'t 500.'

def test_login_password_disabled(self):

    self.u.set_unusable_password()
    self.u.save()
    response = self.client.post(reverse('users.login'), {'username': self.u.username, 'password': 'testpass'})
    eq_(200, response.status_code)
