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

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

src/p/y/python-ceilometerclient-HEAD/ceilometerclient/tests/test_client.py   python-ceilometerclient(Download)
    def test_client_version(self):
        c1 = self.create_client(api_version=1)
        self.assertIsInstance(c1, v1client.Client)
 
        c2 = self.create_client(api_version=2)
        self.assertIsInstance(c2, v2client.Client)
    def _test_client_auth_token(self):
        c2 = self.create_client()
        self.assertIsInstance(c2, v2client.Client)
        self.assertIsInstance(c2.http_client.auth_token,
                              types.FunctionType)

src/p/y/python-ceilometerclient-1.0.10/ceilometerclient/tests/test_client.py   python-ceilometerclient(Download)
    def test_client_version(self):
        c1 = self.create_client(api_version=1)
        self.assertIsInstance(c1, v1client.Client)
 
        c2 = self.create_client(api_version=2)
        self.assertIsInstance(c2, v2client.Client)
 
    def test_client_auth_lambda(self):
        FAKE_ENV['os_auth_token'] = lambda: FAKE_ENV['os_auth_token']
        self.assertIsInstance(FAKE_ENV['os_auth_token'],
                              types.FunctionType)
        c2 = self.create_client()
        self.assertIsInstance(c2, v2client.Client)
 
    def test_client_auth_non_lambda(self):
        FAKE_ENV['os_auth_token'] = "1234"
        self.assertIsInstance(FAKE_ENV['os_auth_token'], str)