def test_globals(self): def f(x): return x + a self.assertEqual(5, funkify(f)(2, _override_a=3))
def test_no_globals(self): def f(x): return x self.assertEqual(42, funkify(f)(42))