示例#1
0
    def test_copy_password(self):
        """
        Method that confirms we are copying the password from a profile
        """
        self.new_profile.save_profile()
        Passwords.copy_password("CIA")

        self.assertEqual(self.new_profile.account_password, pyperclip.paste())
示例#2
0
def copy_password(account_name):
    """
    Function that allows us to copy a password from matching account_name
    """
    return Passwords.copy_password()