def test_copy_details(self): ''' test to confirm that we are copying the details from a found account ''' self.new_credentials.save_credentials() Credentials.copy_details("Snapchat") self.assertEqual(self.new_credentials.user_name, pyperclip.paste())
def copy_credential(account): ''' function that copy-pastes to clipboard the username that matches the accountname ''' return Credentials.copy_details(account)