##// END OF EJS Templates
Merge pull request #929 from juliantaylor/multiline-history...
Merge pull request #929 from juliantaylor/multiline-history some readline multiline-history fixes and tests * fixes crash when readline is absent (#911) * do not save input from e.g. raw_input in history * do not add empty or duplicate entries lines to the history. * add tests for _replace_rlhist_multiline * protect pyreadline from some incorrect assumptions of equivalence to regular readline closes gh-911

File last commit:

r4533:1c4a699e
r5275:7c0ffa59 merge
Show More
test_json.py
21 lines | 389 B | text/x-python | PythonLexer
Brian E. Granger
Added collapsed field to the code cell.
r4533 import pprint
Brian E. Granger
Full versioning added to nbformat.
r4406 from unittest import TestCase
from ..nbjson import reads, writes
from .nbexamples import nb0
class TestJSON(TestCase):
def test_roundtrip(self):
s = writes(nb0)
Brian E. Granger
Added collapsed field to the code cell.
r4533 # print
# print pprint.pformat(nb0,indent=2)
# print
# print pprint.pformat(reads(s),indent=2)
# print
# print s
Brian E. Granger
Full versioning added to nbformat.
r4406 self.assertEquals(reads(s),nb0)