0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Used more specific assertion in check_framework tests.

This commit is contained in:
Alasdair Nicol 2015-09-12 23:46:55 +01:00 committed by Tim Graham
parent 95edabb45e
commit 15ce1a735c

View File

@ -25,5 +25,5 @@ class CheckDuplicateTemplateSettingsTest(SimpleTestCase):
def test_multiple_duplicate_settings(self):
result = check_duplicate_template_settings(None)
self.assertEqual(len(result), 1)
self.assertTrue('TEMPLATE_DIRS' in result[0].msg)
self.assertTrue('TEMPLATE_DEBUG' in result[0].msg)
self.assertIn('TEMPLATE_DIRS', result[0].msg)
self.assertIn('TEMPLATE_DEBUG', result[0].msg)