Commit a4717aca by Will Daly

Pep8 fixes

parent a57a093e
...@@ -7,10 +7,12 @@ from lxml import etree ...@@ -7,10 +7,12 @@ from lxml import etree
from mako.template import Template as MakoTemplate from mako.template import Template as MakoTemplate
from mako import exceptions from mako import exceptions
class TemplateError(Exception): class TemplateError(Exception):
"""Error occurred while rendering a Mako template""" """Error occurred while rendering a Mako template"""
pass pass
class TemplateTestCase(unittest.TestCase): class TemplateTestCase(unittest.TestCase):
"""Utilitites for testing templates""" """Utilitites for testing templates"""
...@@ -309,11 +311,10 @@ class TextlineTemplateTest(TemplateTestCase): ...@@ -309,11 +311,10 @@ class TextlineTemplateTest(TemplateTestCase):
super(TextlineTemplateTest, self).setUp() super(TextlineTemplateTest, self).setUp()
def test_section_class(self): def test_section_class(self):
cases = [ ({}, ' capa_inputtype '), cases = [({}, ' capa_inputtype '),
({'do_math': True}, 'text-input-dynamath capa_inputtype '), ({'do_math': True}, 'text-input-dynamath capa_inputtype '),
({'inline': True}, ' capa_inputtype inline'), ({'inline': True}, ' capa_inputtype inline'),
({'do_math': True, 'inline': True}, 'text-input-dynamath capa_inputtype inline'), ({'do_math': True, 'inline': True}, 'text-input-dynamath capa_inputtype inline'), ]
]
for (context, css_class) in cases: for (context, css_class) in cases:
base_context = self.context.copy() base_context = self.context.copy()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment