Пример #1
0
	def test_value_list(self):
	
		json_out = io.StringIO()
		json.write(json_out, [
			"value1",
			"value2",
			"value3"
		], 0)
		self.assertSameContent(json_out, "value-list.json")
Пример #2
0
    def test_value_list(self):

        json_out = io.StringIO()
        json.write(json_out, ["value1", "value2", "value3"], 0)
        self.assertSameContent(json_out, "value-list.json")
Пример #3
0
    def test_value_str(self):

        json_out = io.StringIO()
        json.write(json_out, "abcD123\\\"aaa")
        self.assertSameContent(json_out, "value-str.json")
Пример #4
0
    def test_value_number(self):

        json_out = io.StringIO()
        json.write(json_out, 176)
        self.assertSameContent(json_out, "value-number.json")
Пример #5
0
	def test_value_str(self):
	
		json_out = io.StringIO()
		json.write(json_out, "abcD123\\\"aaa")
		self.assertSameContent(json_out, "value-str.json")
Пример #6
0
	def test_value_number(self):
	
		json_out = io.StringIO()
		json.write(json_out, 176)
		self.assertSameContent(json_out, "value-number.json")