def test_one(self): s = json.dumps({"foo": 1}) assert utils.pretty_json(s) assert not utils.pretty_json("moo")
def test_pretty_json(): s = json.dumps({"foo": 1}) assert utils.pretty_json(s) assert not utils.pretty_json("moo")