def test_key_length_is_as_specified(self): key, _ = Key.generate('pwd', 12) self.assertEqual(len(key), 32)
def test_generate_uses_different_salt_every_time(self): self.assertNotEqual(Key.generate('weakpassword', 12), Key.generate('weakpassword', 12))