def test(fh): result = baz() fh.write(str(result == 'baz')) fh.close() os._exit(0)
def test_patch_context_a(self): b = baz() assert b == 'boz', "Expected boz got %s" % b
def test_patch_context_b(self): b = baz() assert b == 'bar', "Expected bar got %s" % b
def test_patch_sanity(self): b = baz() assert b == 'biz', "Value is %s" % b
def bazbiz(): return baz() + biz()