def test_10_find_hook__post(self): g = H.find_hook(init, "post_", get_module()) self.assertEquals(type(g), type(init)) self.assertNotEquals(g, H.noop) g()
def test_00_find_hook__pre(self): g = H.find_hook(init, "pre_", get_module()) self.assertEquals(type(g), type(init)) # is g function? self.assertNotEquals(g, H.noop) g()