##// END OF EJS Templates
DocInherit is running into recursion depth for subclasses of the original converters -- temporary overwrite
DocInherit is running into recursion depth for subclasses of the original converters -- temporary overwrite

File last commit:

r7366:f430665c
r7368:da60fb14
Show More
test_nbconverter.py
20 lines | 548 B | text/x-python | PythonLexer
/ tests / test_nbconverter.py
Jonathan Taylor
overriding DocInherit due to recursion depth errors
r7366 from nbconvert import ConverterNotebook
import nose.tools as nt
import os
fname = 'tests/test.ipynb'
outbase1 = 'newtest1'
outbase2 = 'newtest2'
def test_roundtrip():
converter = ConverterNotebook(fname, outbase1)
converter.render()
converter2 = ConverterNotebook(outbase1+'.ipynb', outbase2)
converter2.render()
s1 = open(outbase1+'.ipynb', 'rb').read()
s2 = open(outbase2+'.ipynb', 'rb').read()
nt.assert_true(s1.replace(outbase1, outbase2) == s2)
os.remove(outbase1+'.ipynb')
os.remove(outbase2+'.ipynb')