##// END OF EJS Templates
Enabled Transformer
Jonathan Frederic -
Show More
@@ -1,37 +1,39 b''
1 1 """
2 2 Module with tests for the csshtmlheader transformer
3 3 """
4 4
5 5 #-----------------------------------------------------------------------------
6 6 # Copyright (c) 2013, the IPython Development Team.
7 7 #
8 8 # Distributed under the terms of the Modified BSD License.
9 9 #
10 10 # The full license is in the file COPYING.txt, distributed with this software.
11 11 #-----------------------------------------------------------------------------
12 12
13 13 #-----------------------------------------------------------------------------
14 14 # Imports
15 15 #-----------------------------------------------------------------------------
16 16
17 17 from .base import TransformerTestsBase
18 18 from ..csshtmlheader import CSSHTMLHeaderTransformer
19 19
20 20
21 21 #-----------------------------------------------------------------------------
22 22 # Class
23 23 #-----------------------------------------------------------------------------
24 24
25 25 class TestCSSHTMLHeader(TransformerTestsBase):
26 26 """Contains test functions for csshtmlheader.py"""
27 27
28 28 def test_constructor(self):
29 29 """Can a CSSHTMLHeaderTransformer be constructed?"""
30 CSSHTMLHeaderTransformer()
30 transformer = CSSHTMLHeaderTransformer()
31 transformer.enabled = True
32 return transformer
31 33
32 34
33 35 def test_output(self):
34 36 """Test the output of the CSSHTMLHeaderTransformer"""
35 nb, res = CSSHTMLHeaderTransformer()(self.build_notebook(), {})
37 nb, res = self.test_constructor()(self.build_notebook(), {})
36 38 assert 'inlining' in res
37 39 assert 'css' in res['inlining'] No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now