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'])
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'])