def test_value_list(self): json_out = io.StringIO() json.write(json_out, [ "value1", "value2", "value3" ], 0) self.assertSameContent(json_out, "value-list.json")
def test_value_list(self): json_out = io.StringIO() json.write(json_out, ["value1", "value2", "value3"], 0) self.assertSameContent(json_out, "value-list.json")
def test_value_str(self): json_out = io.StringIO() json.write(json_out, "abcD123\\\"aaa") self.assertSameContent(json_out, "value-str.json")
def test_value_number(self): json_out = io.StringIO() json.write(json_out, 176) self.assertSameContent(json_out, "value-number.json")