def test_copy_password(self): ''' Test to copy the password to the clipboard ''' self.new_credentials.save_credentials() Credentials.copy_password("instagram") self.assertEqual(self.new_credentials.password, pyperclip.paste())
def copy_password(account): ''' Function to copy password of the credentials password ''' return Credentials.copy_password(account)