test_templates.py
18 lines
| 400 B
| text/x-python
|
PythonLexer
/ tests / test_templates.py
Matthias BUSSONNIER
|
r9586 | import io | ||
import nose.tools as nt | ||||
import os | ||||
from nose.tools import nottest | ||||
from converters.template import ConverterTemplate | ||||
def test_evens(): | ||||
reflist = [ | ||||
'tests/ipynbref/IntroNumPy.orig' | ||||
] | ||||
# null template should return empty | ||||
Matthias BUSSONNIER
|
r9627 | C = ConverterTemplate() | ||
Matthias BUSSONNIER
|
r9586 | C.read('tests/ipynbref/IntroNumPy.orig.ipynb') | ||
Matthias BUSSONNIER
|
r9606 | result,_ = C.convert() | ||
Matthias BUSSONNIER
|
r9586 | nt.assert_equal(result,'') | ||