From 15ce1a735cfe483cafc6c8e4d4b0078b09c3cb38 Mon Sep 17 00:00:00 2001 From: Alasdair Nicol Date: Sat, 12 Sep 2015 23:46:55 +0100 Subject: [PATCH] Used more specific assertion in check_framework tests. --- tests/check_framework/tests_1_8_compatibility.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/check_framework/tests_1_8_compatibility.py b/tests/check_framework/tests_1_8_compatibility.py index 8f354b6b3a..d8601b1064 100644 --- a/tests/check_framework/tests_1_8_compatibility.py +++ b/tests/check_framework/tests_1_8_compatibility.py @@ -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)