def test_copy_password(self): ''' test to confirm that it is possible to copy to the machine's clipboard ''' self.new_credential.save_credentials() Credentials.copy_password("reddit") self.assertEqual(self.new_credential.password,pyperclip.paste())
def copy_password(site_name): ''' method to copy credential to machine clipboard ''' return Credentials.copy_password(site_name)