Exemplo n.º 1
0
 def test_metering_report(self):
     v = notifications.Bandwidth()
     samples = list(v.process_notification(NOTIFICATION_L3_METER))
     self.assertEqual(len(samples), 1)
     self.assertEqual(samples[0].name, "bandwidth")
Exemplo n.º 2
0
 def test_bandwidth(self):
     self.assertTrue(notifications.Bandwidth().event_types)
Exemplo n.º 3
0
 def test_metering_report(self):
     v = notifications.Bandwidth(mock.Mock())
     samples = list(v.process_notification(NOTIFICATION_L3_METER))
     self.assertEqual(1, len(samples))
     self.assertEqual("bandwidth", samples[0].name)