def test_pprint(): t = {'hi': 1} with capture_out() as o: pretty.pprint(t) assert o.getvalue().strip() == pretty.pretty(t)
def test_pprint(): t = {"hi": 1} with capture_out() as o: pretty.pprint(t) assert o.getvalue().strip() == pretty.pretty(t)