Beispiel #1
0
 def test_instance_resize_finish_memory(self):
     ic = notifications.Memory()
     counters = ic.process_notification(INSTANCE_RESIZE_REVERT_END)
     self.assertEqual(len(counters), 1)
     c = counters[0]
     self.assertEqual(c.volume,
                      INSTANCE_RESIZE_REVERT_END['payload']['memory_mb'])
Beispiel #2
0
 def test_instance_create_memory(self):
     ic = notifications.Memory()
     counters = ic.process_notification(INSTANCE_CREATE_END)
     self.assertEqual(len(counters), 1)
     c = counters[0]
     self.assertEqual(c.volume, INSTANCE_CREATE_END['payload']['memory_mb'])