diff options
| author | Berker Peksag <berker.peksag@gmail.com> | 2014-10-28 12:02:56 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-11-03 11:56:37 -0500 |
| commit | f7969b0920c403118656f6bfec58d6454d79ef1a (patch) | |
| tree | 866df7de0524251323fef2b4262e672150d95f00 /tests/generic_views/test_base.py | |
| parent | c0c78f1b707f825eee974c65515a837f8cf46e66 (diff) | |
Fixed #23620 -- Used more specific assertions in the Django test suite.
Diffstat (limited to 'tests/generic_views/test_base.py')
| -rw-r--r-- | tests/generic_views/test_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/generic_views/test_base.py b/tests/generic_views/test_base.py index b23c4582e5..29e225088d 100644 --- a/tests/generic_views/test_base.py +++ b/tests/generic_views/test_base.py @@ -447,7 +447,7 @@ class GetContextDataTest(unittest.TestCase): context = test_view.get_context_data(kwarg_test='kwarg_value') # the test_name key is inserted by the test classes parent - self.assertTrue('test_name' in context) + self.assertIn('test_name', context) self.assertEqual(context['kwarg_test'], 'kwarg_value') self.assertEqual(context['custom_key'], 'custom_value') |
