Show More
@@ -1,23 +1,11 b'' | |||
|
1 | 1 | """Tests for PythonExporter""" |
|
2 | 2 | |
|
3 | #----------------------------------------------------------------------------- | |
|
4 | # Copyright (c) 2013, the IPython Development Team. | |
|
5 | # | |
|
3 | # Copyright (c) IPython Development Team. | |
|
6 | 4 | # Distributed under the terms of the Modified BSD License. |
|
7 | # | |
|
8 | # The full license is in the file COPYING.txt, distributed with this software. | |
|
9 | #----------------------------------------------------------------------------- | |
|
10 | ||
|
11 | #----------------------------------------------------------------------------- | |
|
12 | # Imports | |
|
13 | #----------------------------------------------------------------------------- | |
|
14 | 5 | |
|
15 | 6 | from .base import ExportersTestsBase |
|
16 | 7 | from ..python import PythonExporter |
|
17 | 8 | |
|
18 | #----------------------------------------------------------------------------- | |
|
19 | # Class | |
|
20 | #----------------------------------------------------------------------------- | |
|
21 | 9 | |
|
22 | 10 | class TestPythonExporter(ExportersTestsBase): |
|
23 | 11 | """Tests for PythonExporter""" |
@@ -26,15 +14,10 b' class TestPythonExporter(ExportersTestsBase):' | |||
|
26 | 14 | should_include_raw = ['python'] |
|
27 | 15 | |
|
28 | 16 | def test_constructor(self): |
|
29 | """ | |
|
30 | Can a PythonExporter be constructed? | |
|
31 | """ | |
|
32 | PythonExporter() | |
|
33 | ||
|
17 | """Can a PythonExporter be constructed?""" | |
|
18 | self.exporter_class() | |
|
34 | 19 | |
|
35 | 20 | def test_export(self): |
|
36 | """ | |
|
37 | Can a PythonExporter export something? | |
|
38 | """ | |
|
39 | (output, resources) = PythonExporter().from_filename(self._get_notebook()) | |
|
40 | assert len(output) > 0 No newline at end of file | |
|
21 | """Can a PythonExporter export something?""" | |
|
22 | (output, resources) = self.exporter_class().from_filename(self._get_notebook()) | |
|
23 | self.assertIn("coding: utf-8", output) |
General Comments 0
You need to be logged in to leave comments.
Login now