validate both directions
This commit is contained in:
parent
cc5f5c9c90
commit
82146cb658
@ -12,8 +12,12 @@ def main():
|
||||
f.close()
|
||||
|
||||
f = open(out_file, "w")
|
||||
f.write(BSON.from_dict(SON.from_xml(xml)))
|
||||
doc = SON.from_xml(xml)
|
||||
bson = BSON.from_dict(doc)
|
||||
f.write(bson)
|
||||
f.close()
|
||||
|
||||
assert doc == bson.to_dict()
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user