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

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

src/p/y/python-ceilometerclient-1.0.10/ceilometerclient/v2/client.py   python-ceilometerclient(Download)
    def __init__(self, *args, **kwargs):
        """Initialize a new client for the Ceilometer v2 API."""
        self.http_client = http.HTTPClient(*args, **kwargs)
        self.meters = meters.MeterManager(self.http_client)
        self.samples = samples.SampleManager(self.http_client)

src/p/y/python-ceilometerclient-1.0.10/ceilometerclient/v1/client.py   python-ceilometerclient(Download)
    def __init__(self, *args, **kwargs):
        """Initialize a new client for the Ceilometer v1 API."""
        self.http_client = http.HTTPClient(*args, **kwargs)
        self.meters = meters.MeterManager(self.http_client)
        self.samples = meters.SampleManager(self.http_client)

src/p/y/python-ceilometerclient-HEAD/ceilometerclient/v2/client.py   python-ceilometerclient(Download)
    def __init__(self, *args, **kwargs):
        """Initialize a new client for the Ceilometer v2 API."""
        self.http_client = http.HTTPClient(*args, **kwargs)
        self.meters = meters.MeterManager(self.http_client)
        self.samples = samples.SampleManager(self.http_client)

src/p/y/python-ceilometerclient-HEAD/ceilometerclient/v1/client.py   python-ceilometerclient(Download)
    def __init__(self, *args, **kwargs):
        """Initialize a new client for the Ceilometer v1 API."""
        self.http_client = http.HTTPClient(*args, **kwargs)
        self.meters = meters.MeterManager(self.http_client)
        self.samples = meters.SampleManager(self.http_client)

src/p/y/python-ceilometerclient-1.0.10/ceilometerclient/tests/test_http.py   python-ceilometerclient(Download)
    def test_url_generation_trailing_slash_in_base(self):
        client = http.HTTPClient("%s/" % self.url)
        url = client._make_connection_url('/v1/resources')
        self.assertEqual(url, '/v1/resources')
 
    def test_url_generation_without_trailing_slash_in_base(self):
        client = http.HTTPClient(self.url)
    def test_url_generation_prefix_slash_in_path(self):
        client = http.HTTPClient("%s/" % self.url)
        url = client._make_connection_url('/v1/resources')
        self.assertEqual(url, '/v1/resources')
 
    def test_url_generation_without_prefix_slash_in_path(self):
        client = http.HTTPClient(self.url)
    def test_get_connection(self):
        client = http.HTTPClient(self.url)
        self.assertIsNotNone(client.get_connection())
 
    @mock.patch.object(http.HTTPClient, 'get_connection')

src/p/y/python-ceilometerclient-HEAD/ceilometerclient/tests/test_http.py   python-ceilometerclient(Download)
    def test_url_generation_trailing_slash_in_base_prefix_in_path(self):
        client = http.HTTPClient("%s/" % self.url)
        url = client._make_connection_url('/v1/resources')
        self.assertEqual(url, '/v1/resources')
 
    def test_url_generation_no_trailing_slash_in_base_prefix_in_path(self):
        client = http.HTTPClient(self.url)
    def test_url_generation_trailing_slash_in_base_no_prefix_in_path(self):
        client = http.HTTPClient("%s/" % self.url)
        url = client._make_connection_url('v1/resources')
        self.assertEqual(url, '/v1/resources')
 
    def test_url_generation_no_trailing_slash_in_base_no_prefix_in_path(self):
        client = http.HTTPClient(self.url)
    def test_get_connection(self):
        client = http.HTTPClient(self.url)
        self.assertIsNotNone(client.get_connection())
 
    @mock.patch.object(http.HTTPClient, 'get_connection')