##// END OF EJS Templates
don't assume tested ipython is on the PATH...
don't assume tested ipython is on the PATH Use more portable / reliable `python -m IPython` especially helpful when there are many Pythons, or PATH is not reliable (Windows).

File last commit:

r7874:4a6836ce
r11350:4779579c
Show More
test_json.py
14 lines | 219 B | text/x-python | PythonLexer
from unittest import TestCase
from ..nbjson import reads, writes
from .nbexamples import nb0
class TestJSON(TestCase):
def test_roundtrip(self):
s = writes(nb0)
self.assertEqual(reads(s),nb0)