コード例 #1
0
    def test_copy_password(self):
        '''
        Test to confirm that we are copying the email address from a found contact
        '''
        self.new_credential.save_credentials()
        Credential.copy_password("uwas-dian")

        self.assertEqual(self.new_credential.password, pyperclip.paste())
コード例 #2
0
def copy_password(username):
    """
    A funct that copies the password using the pyperclip framework
    """
    return Credential.copy_password(username)