##// END OF EJS Templates
Merge pull request #762 from jdmarch/jdmarch-755-execute-file-hack...
Merge pull request #762 from jdmarch/jdmarch-755-execute-file-hack qtconsole ipython widget's execute_file fails if filename contains spaces or quotes

File last commit:

r4533:1c4a699e
r4775:af8cee08 merge
Show More
test_json.py
21 lines | 389 B | text/x-python | PythonLexer
import pprint
from unittest import TestCase
from ..nbjson import reads, writes
from .nbexamples import nb0
class TestJSON(TestCase):
def test_roundtrip(self):
s = writes(nb0)
# print
# print pprint.pformat(nb0,indent=2)
# print
# print pprint.pformat(reads(s),indent=2)
# print
# print s
self.assertEquals(reads(s),nb0)