Commits

offline  committed 5fa3867

test bugfix

  • Participants
  • Parent commits 9b0014d

Comments (0)

Files changed (1)

File openauth/tests.py

     def test_disabled_registration(self):
         openauth.settings.REGISTRATION_ALLOWED = False
         response = self.client.post(self.registration_url, {'username': 'petya', 'email': 'admin@example.com', 'password': 'test', 'password_dup': 'test'}) 
-        self.failUnlessRaises(User.DoesNotExist, User.objects.get, pk=1)
+        self.failUnlessRaises(User.DoesNotExist, User.objects.get, username='petya')