def test_notification_after_serialization(self, notifier):
     orig_notify = notification.TroveInstanceDelete(instance=self.instance)
     serialized = orig_notify.serialize(None)
     new_notify = notification.TroveInstanceDelete().deserialize(None,
                                                                 serialized)
     new_notify.notify()
     self.assertTrue(notifier().info.called)
 def test_notification(self, notifier):
     notification.TroveInstanceDelete(instance=self.instance).notify()
     self.assertTrue(notifier().info.called)