##// END OF EJS Templates
test and update conversion between v3 <-> v4
test and update conversion between v3 <-> v4

File last commit:

r18577:8ee671a6
r18577:8ee671a6
Show More
test_convert.py
19 lines | 459 B | text/x-python | PythonLexer
import copy
from IPython.nbformat.current import validate
from .. import convert
from . import nbexamples
from IPython.nbformat.v3.tests import nbexamples as v3examples
def test_upgrade_notebook():
nb03 = copy.deepcopy(v3examples.nb0)
validate(nb03)
nb04 = convert.upgrade(nb03)
validate(nb04)
def test_downgrade_notebook():
nb04 = copy.deepcopy(nbexamples.nb0)
validate(nb04)
nb03 = convert.downgrade(nb04)
validate(nb03)