This commit is contained in:
Kovid Goyal 2019-10-29 16:49:39 +05:30
parent cb9b08b369
commit b44c42a78c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -404,7 +404,7 @@ public:
} else if (!write_str_literal("}")) return NULL; } else if (!write_str_literal("}")) return NULL;
} }
} }
if (!write_str_literal(",\"nsmap\":")) return NULL; if (!write_str_literal(",\"ns_map\":")) return NULL;
if (!this->add_nsmap()) return NULL; if (!this->add_nsmap()) return NULL;
if (!write_str_literal("}")) return NULL; if (!write_str_literal("}")) return NULL;

View File

@ -248,7 +248,7 @@ class ContentTest(LibraryBaseTest):
# print(raw.decode('utf-8')) # print(raw.decode('utf-8'))
data = json.loads(raw) data = json.loads(raw)
self.ae(data['version'], 1) self.ae(data['version'], 1)
self.ae(tuple(data['nsmap']), nsmap) self.ae(tuple(data['ns_map']), nsmap)
bc = data['tree']['c'][1]['c'] bc = data['tree']['c'][1]['c']
self.ae(bc, body_children) self.ae(bc, body_children)