Beispiel #1
0
 def prepare(self):
     """Prepare the authenticator/installer."""
     if self.plesk_api_client is None:
         self.plesk_api_client = api_client.PleskApiClient(
             secret_key=self.conf('secret-key'))
Beispiel #2
0
 def setUp(self):
     super(PleskApiClientTest, self).setUp()
     self.api_client = api_client.PleskApiClient()
     self.api_client.PSA_PATH = os.path.join(self.TEST_DATA_PATH, 'psa')
     self.api_client.CLI_PATH = os.path.join(self.TEST_DATA_PATH, 'psa',
                                             'bin')