File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -234,22 +234,22 @@ def test_encoding_without_pretty_print(self) -> None:
234234 def test_escapes_angle_brackets (self ):
235235 json_data = json .dumps ({"root" : {"@attrs" : {"HelpText" : "version <here>" }}})
236236 result = json2xml .Json2xml (json_data ).to_xml ()
237- assert 'HelpText= "version <here>"' in result
237+ assert '" HelpText": "version <here>"' in result
238238
239239 def test_escapes_quotes (self ):
240240 json_data = json .dumps ({"root" : {"@attrs" : {"Text" : "\" quoted\" " }}})
241241 result = json2xml .Json2xml (json_data ).to_xml ()
242- assert 'Text="" quoted" "' in result
242+ assert '" Text": " \\ " quoted\\ " "' in result
243243
244244 def test_escapes_ampersands (self ):
245245 json_data = json .dumps ({"root" : {"@attrs" : {"Text" : "this & that" }}})
246246 result = json2xml .Json2xml (json_data ).to_xml ()
247- assert 'Text= "this & that"' in result
247+ assert '" Text": "this & that"' in result
248248
249249 def test_escapes_mixed_special_chars (self ):
250250 json_data = json .dumps ({"root" : {"@attrs" : {"Text" : "<tag> & \" quote\" " }}})
251251 result = json2xml .Json2xml (json_data ).to_xml ()
252- assert 'Text=" <tag> & " quote" "' in result
252+ assert '" Text": " <tag> & \\ " quote\\ " "' in result
253253
254254
255255
You can’t perform that action at this time.
0 commit comments