예제 #1
0
 def test_copy_username(self):
     '''
     Test to confirm that we are copying the username from a found credential
     '''
     self.new_credential.save_details()
     Credentials.copy_username("Instagram")
     self.assertEqual(self.new_credential.username, pyperclip.paste())
예제 #2
0
def copy_username(account_platform):
    """
    A funct that copies the password using the pyperclip framework
    We import the framework then declare a function that copies the emails.
    """
    return Credentials.copy_username(account_platform)