##// END OF EJS Templates
Initial draft of more formal notebook format....
Initial draft of more formal notebook format. * Basic Python notebook uses a simple Struct subclass, NotebookNode for representing the notebook components. * XML and JSON readers/writers work in full round trip manner. * Python reader/writter works for code cells. * Everything is tested.

File last commit:

r4401:f3a5072f
r4401:f3a5072f
Show More
test_xml.py
12 lines | 253 B | text/x-python | PythonLexer
from unittest import TestCase
from IPython.nbformat.nbxml import reads, writes
from IPython.nbformat.tests.nbexamples import nb0
class TestXML(TestCase):
def test_roundtrip(self):
s = writes(nb0)
self.assertEquals(reads(s),nb0)