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

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

src/p/y/python-ceilometerclient-1.0.10/ceilometerclient/tests/v2/test_samples.py   python-ceilometerclient(Download)
        ]
        self.assertEqual(self.api.calls, expect)
        self.assertTrue(sample)
 
    def test_limit(self):

src/p/y/python-ceilometerclient-HEAD/ceilometerclient/tests/v2/test_samples.py   python-ceilometerclient(Download)
        ]
        self.assertEqual(self.api.calls, expect)
        self.assertTrue(sample)
 
    def test_limit(self):

src/p/y/python-ceilometerclient-1.0.10/ceilometerclient/tests/v2/test_shell.py   python-ceilometerclient(Download)
            actions = ['log://', 'http://example.com/alarm/state']
            self.assertEqual(actions, kwargs.get('alarm_actions'))
            self.assertTrue('threshold_rule' in kwargs)
            rule = kwargs['threshold_rule']
            self.assertEqual('cpu_util', rule.get('meter_name'))

src/p/y/python-ceilometerclient-HEAD/ceilometerclient/tests/v2/test_shell.py   python-ceilometerclient(Download)
            actions = ['log://', 'http://example.com/alarm/state']
            self.assertEqual(actions, kwargs.get('alarm_actions'))
            self.assertTrue('threshold_rule' in kwargs)
            rule = kwargs['threshold_rule']
            self.assertEqual('cpu_util', rule.get('meter_name'))

src/p/y/python-ceilometerclient-1.0.10/ceilometerclient/tests/v2/test_events.py   python-ceilometerclient(Download)
        ]
        self.assertEqual(self.api.calls, expect)
        self.assertTrue(event)
        self.assertEqual(event.event_type, 'Foo')
 

src/p/y/python-ceilometerclient-HEAD/ceilometerclient/tests/v2/test_events.py   python-ceilometerclient(Download)
        ]
        self.assertEqual(self.api.calls, expect)
        self.assertTrue(event)
        self.assertEqual(event.event_type, 'Foo')
 

src/p/y/python-ceilometerclient-1.0.10/ceilometerclient/tests/v2/test_resources.py   python-ceilometerclient(Download)
        ]
        self.assertEqual(self.api.calls, expect)
        self.assertTrue(resource)
        self.assertEqual(resource.resource_id, 'a')
 

src/p/y/python-ceilometerclient-HEAD/ceilometerclient/tests/v2/test_resources.py   python-ceilometerclient(Download)
        ]
        self.assertEqual(self.api.calls, expect)
        self.assertTrue(resource)
        self.assertEqual(resource.resource_id, 'a')