Example #1
0
 def test_copy_credentials(self):
     self.new_credential.save_credentials()
     Credentials.copy_credentials('TestPlat')
     test_copy = ('Platform:' + self.new_credential.platform + ', ' +
                  'Username: '******', ' +
                  'Password: ' + self.new_credential.password)
     self.assertEqual(test_copy, pyperclip.paste())
Example #2
0
def copy_credentials(service):
    """
    function to copy credentials corresponding to service typed in
    :param service:
    :return:
    """
    return Credentials.copy_credentials(service)
Example #3
0
def copy_credentials(platform):
    return Credentials.copy_credentials(platform)