##// END OF EJS Templates
Updates to the display system....
Updates to the display system. * New publish_* functions created in IPython.core.displaypub. * A raw=True argument has been added to the display_* functions in IPython.core.display. * Display object classes such as Html, Png, etc. have been added to IPython.core.display to make it easier to diplay raw data from the internet.

File last commit:

r4406:0251893c
r4526:b84d8954
Show More
test_xml.py
18 lines | 384 B | text/x-python | PythonLexer
from unittest import TestCase
from ..nbxml import reads, writes
from .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)