Detected 1 occurrence(s) of ‘\s*pass[word]+\s*[:=]\s*[“‘][a-z0-9\-_\!\$]+[“‘]': def test_try_password(self): # create a new user user = User.objects.create_user('test1', password='Hola1') # save the user in the database userbak = user user.save() # test that the password is correct self.assertTrue(authenticate(userbak.username=user.username, userbak.password=user.password)) Source: http://pastebin.com/raw.php?i=u1WvmxGj
↧