Пример #1
0
 def test_copy_password(self):
     '''
     test to confirm that the password from the site given is being copied
     '''
     self.new_cred.save_credentials()
     instagram = Credential('dan', 'Instagram', 'damunza', '1234')
     instagram.save_credentials()
     Credential.copy_password('Instagram')
     self.assertEqual(self.new_cred.password, pyperclip.paste())
Пример #2
0
def copy_password(site_name):
    '''
    function that copys the password of a specified app onto a clipboard
    '''
    return Credential.copy_password(site_name)