self.assertEqual('INFO', msg['priority'])
if len(self.notifier.notifications) > 2:
# Cause an assert to print the unexpected item
- self.assertFalse(self.notifier.notifications[2])
+ # and all of the notifications.
+ self.assertFalse(self.notifier.notifications[2],
+ self.notifier.notifications)
self.assertEqual(2, len(self.notifier.notifications),
self.notifier.notifications)
if len(self.notifier.notifications) > 4:
# Cause an assert to print the unexpected item
- self.assertFalse(self.notifier.notifications[4])
+ # and all of the notifications.
+ self.assertFalse(self.notifier.notifications[4],
+ self.notifier.notifications)
self.assertEqual(4, len(self.notifier.notifications),
self.notifier.notifications)
if len(self.notifier.notifications) > 6:
# Cause an assert to print the unexpected item
- self.assertFalse(self.notifier.notifications[6])
+ # and all of the notifications.
+ self.assertFalse(self.notifier.notifications[6],
+ self.notifier.notifications)
self.assertEqual(6, len(self.notifier.notifications),
self.notifier.notifications)
self.assertDictMatch(expected, msg['payload'])
if len(self.notifier.notifications) > 6:
- self.assertFalse(self.notifier.notifications[6])
+ self.assertFalse(self.notifier.notifications[6],
+ self.notifier.notifications)
self.assertEqual(6, len(self.notifier.notifications),
self.notifier.notifications)
self.volume.delete_consistencygroup(self.context, group2)
if len(self.notifier.notifications) > 10:
- self.assertFalse(self.notifier.notifications[10])
+ self.assertFalse(self.notifier.notifications[10],
+ self.notifier.notifications)
self.assertEqual(10, len(self.notifier.notifications),
self.notifier.notifications)
self.volume.create_volume(self.context, volume_id)
if len(self.notifier.notifications) > 2:
- self.assertFalse(self.notifier.notifications[2])
+ self.assertFalse(self.notifier.notifications[2],
+ self.notifier.notifications)
self.assertEqual(2, len(self.notifier.notifications),
self.notifier.notifications)
cgsnapshot_id).id)
if len(self.notifier.notifications) > 6:
- self.assertFalse(self.notifier.notifications[6])
+ self.assertFalse(self.notifier.notifications[6],
+ self.notifier.notifications)
msg = self.notifier.notifications[2]
self.assertEqual('cgsnapshot.create.start', msg['event_type'])
self.volume.delete_cgsnapshot(self.context, cgsnapshot_id)
if len(self.notifier.notifications) > 10:
- self.assertFalse(self.notifier.notifications[10])
+ self.assertFalse(self.notifier.notifications[10],
+ self.notifier.notifications)
msg = self.notifier.notifications[6]
self.assertEqual('cgsnapshot.delete.start', msg['event_type'])