def test_copy_user_name(self):
        '''
        Test to confirm that we are copying the username from a found credential
        '''

        self.new_credentials.save_credentials()
        Credentials.copy_user_name("James")

        self.assertEqual(self.new_credentials.user_name, pyperclip.paste())
Exemple #2
0
def copy_user_name(account_name):
    """
    This function copies a username of the respective account_name if
    any is found.
    """
    return Credentials.copy_user_name(account_name)