def test_addAfterTrigger(self):
        self.event.addTrigger('after', self.trigger, self.arg)
        self.assertEqual(
            self.event.after,
            [(self.trigger, (self.arg,), {})])
Test if saving a visualization and restoring it works.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_internet.py/ThreePhaseEventTests.test_addAfterTrigger--crossover with--dataset/ETHPy150Open enthought/mayavi/mayavi/tests/test_optional_collection.py/TestOptionalCollection.test_save_and_restore