def test_check_password(): pwd = 'test' assert passwords.check_password(pwd, passwords.to_password(pwd))
def pwd(self, value): self._pwd = passwords.to_password(value) logger.info('Changed password for %s.', self)
def test_to_password(): assert passwords.to_password('test')