Exemplo n.º 1
0
 def test_copy_cred(self):
     '''
     Test to test if credentials are copied to clipboard.
     '''
     self.new_cred.save_cred()
     Credential.copy_cred('Jerry')
     self.assertEqual(pyperclip.paste(), self.new_cred.username)
Exemplo n.º 2
0
 def test_copy_cred(self):
     """
     Test to check if credentials are copied to clipboard.
     """
     self.new_cred.save_cred()
     Credential.copy_cred('brian__jibril')
     self.assertEqual(pyperclip.paste(), self.new_cred.username)
Exemplo n.º 3
0
def copy_cred(app_name):
    '''
    Function to copy credentials
    '''
    return Credential.copy_cred(app_name)