def get_password(event): password, salt, length = split_entry(event.widget.get()) root.clipboard_clear() root.clipboard_append(make_password(password, salt, length)) root.update() root.withdraw()
def test_entry_split_with_length(self): password, salt, length = split_entry('password:salt:15') self.assertEqual('password', password) self.assertEqual('salt', salt) self.assertEqual(15, length)
def test_entry_split(self): password, salt, length = split_entry('password:salt') self.assertEqual('password', password) self.assertEqual('salt', salt) self.assertEqual(10, length)