Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

src/l/e/leastauthority.com-HEAD/lae_automation/aws/test/test_license_service_client.py   leastauthority.com(Download)
import mock
 
from lae_automation.aws.license_service_client import \
    PRODUCTION_LICENSE_SERVICE_ENDPOINT, LicenseServiceClient, \
    ActivateDesktopProductResponse
    def test_nondefault_endpoint(self):
        lsc = LicenseServiceClient(
            creds=AWSCredentials(access_key=FAKE_AWS_ACCESS_KEY_ID, secret_key=FAKE_HMAC_KEY),
            endpoint=AWSServiceEndpoint(uri=PRODUCTION_LICENSE_SERVICE_ENDPOINT),
            )
EXPECTED_BASE64_SIGNATURE = 'wlv84EOcHQk800Yq6QHgX4AdJfk='
 
EXPECTED_BUILT_URL = PRODUCTION_LICENSE_SERVICE_ENDPOINT + '?Action=CreateQueue&AWSAccessKeyId=0A8BDF2G9KCB3ZNKFA82&Expires=2007-01-12T12%3A00%3A00Z&QueueName=queue2&SignatureVersion=1&Version=2008-04-28&Signature=%2Bg091tUDDhl8KZmkstGb41D9Ui4%3D'
 
FAKE_ACTIVATION_KEY='__FAKE_ACTIVATION_KEY__'
FAKE_PRODUCT_TOKEN='__FAKE_PRODUCT_TOKEN__'
 
EXPECTED_ACTIVATE_DESKTOP_PRODUCT_SIGNATURE='vqCzJoNQt%2BhOhaXWfDywtJ4hBUM%3D'
 
EXPECTED_ACTIVATE_DESKTOP_PRODUCT_URL = PRODUCTION_LICENSE_SERVICE_ENDPOINT + '?Action=ActivateDesktopProduct&ActivationKey={__FAKE_ACTIVATION_KEY__}&AWSAccessKeyId=0A8BDF2G9KCB3ZNKFA82&Expires=2007-01-12T12%3A00%3A00Z&ProductToken={__FAKE_PRODUCT_TOKEN__}&SignatureVersion=1&Version=2008-04-28&Signature={__EXPECTED_ACTIVATE_DESKTOP_PRODUCT_SIGNATURE__}'.format(