Skip to content

Commit

Permalink
Fix template tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brutasse committed Sep 19, 2014
1 parent e1df7fa commit acb12a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_templating.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
class TemplatingTests(TestCase):
def test_render_template(self):
rendered = app.render_template('index.html', test=True)
self.assertEqual(rendered, b'Test!')
self.assertEqual(rendered, 'Test!')

rendered = app.render_template('index.html', test=False)
self.assertEqual(rendered, b'Nope!')
self.assertEqual(rendered, 'Nope!')

def test_template_does_not_exist(self):
with self.assertRaises(TemplateNotFound):
app.render_template('inexisting.html')

def test_select_template(self):
rendered = app.render_template(['foo.html', 'index.html'], test=False)
self.assertEqual(rendered, b'Nope!')
self.assertEqual(rendered, 'Nope!')

0 comments on commit acb12a2

Please sign in to comment.