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())
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)