Ticket #3396: test_client.patch

File test_client.patch, 945 bytes (added by Robert Myers <myer0052@…>, 18 years ago)

test_client patch for first two errors

  • tests/modeltests/test_client/models.py

     
    8989       
    9090        # Request a page that requires a login
    9191        response = self.client.login('/test_client/login_protected_view/', 'testclient', 'password')
    92         self.assertTrue(response)
     92        self.failUnless(response)
    9393        self.assertEqual(response.status_code, 200)
    9494        self.assertEqual(response.context['user'].username, 'testclient')
    9595        self.assertEqual(response.template.name, 'Login Template')
     
    9898        "Request a page that is protected with @login, but use bad credentials"
    9999
    100100        response = self.client.login('/test_client/login_protected_view/', 'otheruser', 'nopassword')
    101         self.assertFalse(response)
     101        self.failIf(response)
Back to Top