json: Add simple test.

asyncio-segfault
Paul Sokolovsky 2014-04-19 21:39:13 +03:00
rodzic 904cfd2e9b
commit d122838151
1 zmienionych plików z 13 dodań i 0 usunięć

13
json/test_json.py 100644
Wyświetl plik

@ -0,0 +1,13 @@
import json
inp = ['foo', {'bar': ('baz', None, 1, 2)}]
print(inp)
s = json.dumps(inp)
print(s)
outp = json.loads(s)
print(outp)
# Doesn't work because JSON doesn't have tuples
#assert inp == outp