def test_start_chat(self):
        # Login and call get_messages to set the admin_active cache
        login = self.client.login(username='test', password='test')
        self.client.get(reverse('get_messages'))

        resp = self.client.post(reverse('start_chat'), {
            'name': 'Test Name',
            'details': 'Test Details'
        })
        self.assertEqual(resp.status_code, 302)
        resp2 = self.client.get(resp['location'])
        self.assertEqual(resp2.status_code, 200)
        self.assertTrue(resp['location'] in resp2.context['chat'].hash_key)
dataset/ETHPy150Open MegaMark16/django-live-support/live_support/tests.py/ClientTests.test_start_chat/swapped operands of `in`