def test_called(self):
        result = []
        registry = FunctionRegistry()
        registry.register(lambda: result.append(1))
        registry.register(lambda x: result.append(x), 2)
        registry.register(lambda y: result.append(y), y=3)
        registry.run()
        self.assertEqual(result, [3, 2, 1])
Functions registered with a FunctionRegistry are called in reverse
dataset/ETHPy150Open itamarst/crochet/crochet/tests/test_shutdown.py/FunctionRegistryTests.test_called