##// END OF EJS Templates
Merge pull request #5 from jdfreder/css-top-default...
Merge pull request #5 from jdfreder/css-top-default Fix js-tests for new default selector logic.

File last commit:

r16847:973a2f6d
r17518:19817add merge
Show More
test_notebook.py
22 lines | 697 B | text/x-python | PythonLexer
Jonathan Frederic
Address final comments
r16847 """Tests for notebook.py"""
Julia Evans
Add IPython Notebook exporter
r16822
Julia Evans
Use new license
r16823 # Copyright (c) IPython Development Team.
Julia Evans
Add IPython Notebook exporter
r16822 # Distributed under the terms of the Modified BSD License.
from .base import ExportersTestsBase
from ..notebook import NotebookExporter
class TestNotebookExporter(ExportersTestsBase):
"""Contains test functions for notebook.py"""
exporter_class = NotebookExporter
def test_export(self):
"""
Does the NotebookExporter return the file unchanged?
"""
with open(self._get_notebook()) as f:
file_contents = f.read()
(output, resources) = NotebookExporter().from_filename(self._get_notebook())
assert len(output) > 0
assert output == file_contents