Example #1
0
    def test_copy_username(self):
        '''
    Test to confirm that we are copying the username from a found search site
    '''
        self.new_credential.update_credential()
        crd.copy_username("Twitter")

        self.assertEqual(self.new_credential.site_username, pyperclip.paste())
Example #2
0
    def test_copy_account(self):
        '''
        Test to confirm that we are copying account credentials found
        '''

        self.new_credentials.save_credentials()
        Credentials.copy_username("Max")

        self.assertEqual(self.new_credentials.account_name, pyperclip.paste())
Example #3
0
def copy_username(site):
  """
  Function that copies the username of a given site
  """

  return crd.copy_username(site)
Example #4
0
def copy_username(name):
    return Credentials.copy_username(name)
Example #5
0
def copy_username(username):
    '''
    Function to copy a credentials details to the clipboard
    '''
    return Credentials.copy_username(username)