This commit is contained in:
Matthias 2022-05-11 23:12:27 +02:00
parent 432a9b2e4d
commit 912d0625f0
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093

View File

@ -14,10 +14,10 @@ class HelperTests(TestCase):
slug = 'sampleplg'
# working sample
response = render_template(ErrorSource(), 'sample/sample.html', {'abc': 123} )
response = render_template(ErrorSource(), 'sample/sample.html', {'abc': 123})
self.assertEqual(response, '<h1>123</h1>')
# Wrong sample
response = render_template(ErrorSource(), 'sample/wrongsample.html', {'abc': 123} )
response = render_template(ErrorSource(), 'sample/wrongsample.html', {'abc': 123})
self.assertTrue('lert alert-block alert-danger' in response)
self.assertTrue('Template file <em>sample/wrongsample.html</em>' in response)