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())
def copy_credentials(service): """ function to copy credentials corresponding to service typed in :param service: :return: """ return Credentials.copy_credentials(service)
def copy_credentials(platform): return Credentials.copy_credentials(platform)