예제 #1
0
 def test_key_length_is_as_specified(self):
     key, _ = Key.generate('pwd', 12)
     self.assertEqual(len(key), 32)
예제 #2
0
 def test_generate_uses_different_salt_every_time(self):
     self.assertNotEqual(Key.generate('weakpassword', 12),
                         Key.generate('weakpassword', 12))