Пример #1
0
 def test_copy_password(self):
 '''
 test whether generated password can be copied
 '''
 self.new_cred.save_cred()
 Credentials.copy_password("meroka")
 #self.assertEqual(self.new_cred.password, pyperclip.paste())
Пример #2
0
        def test_copy_password(self):
            '''
            Test to confirm that we are coppying the password from a credential.
            '''
            self.new_credentials.save_credentials()
            Credentials.copy_password("1234")

            self.assertEqual(self.new_credentials.password, pyperclip.paste())
Пример #3
0
    def test_copy_password(self):
        """
        Test to confirm that we're copying the password from found credential
        """
        self.new_credentials.save_credentials()
        Credentials.copy_password("blink.com")

        self.assertEqual(self.new_credentials.password, pyperclip.paste())
Пример #4
0
    def test_copy_password(self):
        '''
        Test to confirm that we are copying the password from a found credential
        '''

        self.new_credential.save_credentials()
        Credentials.copy_password("Twitter")

        self.assertEqual(self.new_credential.email, pyperclip.paste())
 def test_copy_password(self):#uses pyperclip
      '''
      Test to check if the copy password method will copy the correct password from social media site specified
      '''
      self.new_credentials.save_credentials()
      facebook = Credentials('iyaz','facebook','iyaz2','account')
      facebook.save_credentials()
      Credentials.copy_password('facebook')
      self.assertEqual(self.new_credentials.password,pyperclip.paste())
Пример #6
0
    def test_copy_password(self):
        '''
        Test to confirm that we are copying the password from a found account
        '''

        self.new_credentials.save_credentials()
        Credentials.copy_password("Instagram")

        self.assertEqual(self.new_credentials.accountpassword,
                         pyperclip.paste())
Пример #7
0
def copy_password(acc_name):
    '''
    Function that handles the behaviour of copy email to the clipboard
    '''
    return Credentials.copy_password(acc_name)
Пример #8
0
def copy_password():
    '''
    Function that copies the password to the clipboard
    '''
    return Credentials.copy_password()
    def test_copy_password(self):
        self.new_credentials.save_credentials()
        Credentials.copy_password(self.new_credentials.platform)

        self.assertEqual(self.new_credentials.password, pyperclip.paste())
Пример #10
0
def copy_password(website_url):
    """
    Function that copies the password of the found website url
    :param website_url:
    """
    return Credentials.copy_password(website_url)
Пример #11
0
def copy_password(account):
    """
    A funct that copies the password using the pyperclip framework
    We import the framework then declare a function that copies the emails.
    """
    return Credentials.copy_password(account)
Пример #12
0
def copy_password(account_name):
    """
    This function copies password of respective account-name.
    """
    return Credentials.copy_password(account_name)