Example #1
0
    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())
Example #2
0
def copy_credential(account):
    '''
    function that copy-pastes to clipboard the username that matches the accountname
    '''

    return Credentials.copy_details(account)