##// 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:

r4401:f3a5072f
r4402:4b0e672c
Show More
test_nbpy.py
18 lines | 373 B | text/x-python | PythonLexer
from unittest import TestCase
from IPython.nbformat.nbbase import (
NotebookNode,
new_code_cell, new_text_cell, new_worksheet, new_notebook
)
from IPython.nbformat.nbpy import reads, writes
from IPython.nbformat.tests.nbexamples import nb0, nb0_py
class TestPy(TestCase):
def test_write(self):
s = writes(nb0)
self.assertEquals(s,nb0_py)