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
1 changed files with 2 additions and 2 deletions

View File

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