##// END OF EJS Templates
Updates to basic notebook format....
Updates to basic notebook format. * The format now handles multiple output blocks. * XML now as worksheets, cells and outputs tags.

File last commit:

r4402:4b0e672c
r4402:4b0e672c
Show More
test_xml.py
18 lines | 421 B | text/x-python | PythonLexer
from unittest import TestCase
from IPython.nbformat.nbxml import reads, writes
from IPython.nbformat.tests.nbexamples import nb0
import pprint
class TestXML(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)