コード例 #1
0
    def test_copy_password(self):

        '''
        test to confirm that it is possible to copy to the machine's clipboard
        '''
        self.new_credential.save_credentials()
        Credentials.copy_password("reddit")

        self.assertEqual(self.new_credential.password,pyperclip.paste())
コード例 #2
0
def copy_password(site_name):

    '''
    method to copy credential to machine clipboard
    '''
    return Credentials.copy_password(site_name)