##// END OF EJS Templates
fix inappropriate str.replace in completer.expand_user...
fix inappropriate str.replace in completer.expand_user The replacement could catch extra matches, mangling the tilde_val. This uses slicing instead, to prevent multiple replacements. closes gh-869

File last commit:

r4533:1c4a699e
r5201:2d607167
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)