def test2(): config('require_tidy', 0) _save, utils._tidy_cmd = utils._tidy_cmd, [""] try: (output, errors) = utils.run_tidy(bad_html) (output, errors) = utils.run_tidy(bad_html) finally: utils._tidy_cmd = _save assert output is None assert errors is None config('require_tidy', 1)
def test3(): _save, utils._tidy_cmd = utils._tidy_cmd, [""] try: try: (output, errors) = utils.run_tidy(bad_html) assert 0 except: pass finally: utils._tidy_cmd = _save
def test(): (output, errors) = utils.run_tidy(bad_html) assert output != None