Example #1
0
 def test_new_matches_without_positive_match(self):
     self.assertFalse(passwd.matches('badpasswd', sha1))
Example #2
0
 def test_new_matches_with_positive_match(self):
     self.assertTrue(passwd.matches(password, sha1))