MCVE (with py.test)
MCVE(带py.test)
import json
def test_minimum():
internal={}
internal[0]=""
external={}
with open("source.json", 'w') as outfile:
json.dump(internal, outfile)
with open('source.json', 'r') as f:
external = json.load(f)
assert external == internal
import