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

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

src/c/e/ceilometer-HEAD/ceilometer/tests/volume/test_notifications.py   ceilometer(Download)
    def test_volume_exists(self):
        v = notifications.Volume(mock.Mock())
        samples = list(v.process_notification(NOTIFICATION_VOLUME_EXISTS))
        self.assertEqual(1, len(samples))
        s = samples[0]
    def test_volume_delete(self):
        v = notifications.Volume(mock.Mock())
        samples = list(v.process_notification(NOTIFICATION_VOLUME_DELETE))
        self.assertEqual(1, len(samples))
        s = samples[0]
    def test_volume_resize(self):
        v = notifications.Volume(mock.Mock())
        samples = list(v.process_notification(NOTIFICATION_VOLUME_RESIZE))
        self.assertEqual(1, len(samples))
        s = samples[0]