def test_cache_control(self):
        response = self.client.get('/api/v1/cached_users/', HTTP_ACCEPT='application/json')
        self.assertEqual(response.status_code, 200)

        cache_control = set([x.strip().lower() for x in response["Cache-Control"].split(",") if x.strip()])

        self.assertEqual(cache_control, set(["s-maxage=3600", "max-age=3600"]))
        self.assertTrue(response.content.decode('utf-8') in '"johndoe"')
dataset/ETHPy150Open django-tastypie/django-tastypie/tests/basic/tests/views.py/MoreViewsTestCase.test_cache_control/swapped operands of `in`