def test_wrongPassword(self):
     """
     Calling C{checkPassword} on a L{UsernamePassword} will return L{False}
     when the password given is NOT the password on the object.
     """
     creds = UsernamePassword(b"user", b"pass")
     self.assertFalse(creds.checkPassword(b"someotherpass"))
Beispiel #2
0
 def test_wrongPassword(self):
     """
     Calling C{checkPassword} on a L{UsernamePassword} will return L{False}
     when the password given is NOT the password on the object.
     """
     creds = UsernamePassword(b"user", b"pass")
     self.assertFalse(creds.checkPassword(b"someotherpass"))
 def test_correctPassword(self):
     """
     Calling C{checkPassword} on a L{UsernamePassword} will return L{True}
     when the password given is the password on the object.
     """
     creds = UsernamePassword(b"user", b"pass")
     self.assertTrue(creds.checkPassword(b"pass"))
Beispiel #4
0
 def test_correctPassword(self):
     """
     Calling C{checkPassword} on a L{UsernamePassword} will return L{True}
     when the password given is the password on the object.
     """
     creds = UsernamePassword(b"user", b"pass")
     self.assertTrue(creds.checkPassword(b"pass"))