def test_copy_pass(self): ''' Testing if password has been copied ''' self.new_userdata.save_website() UserData.copy_pass(1,"Michel") self.assertEqual(self.new_userdata.webpass,pyperclip.paste())
def copy_pass(number, count): ''' Function that copies password to clipboard ''' UserData.copy_pass(number, count)