def test_search_project(self):
        """
        Test that searching for the private project does not return it.

        We also check the appearance of the public project
        """
        URL = reverse('search')
        TERMS_1_1 = {'q': self.project_private.slug}
        TERMS_1_2 = {'q': self.resource_private.slug}
        TERMS_1_3 = {'q': self.project_private.name}


        # All type of users should not see private projects in search results!
        for user in USER_ROLES:
            response = self.client[user].get(URL, TERMS_1_1)
            self.failUnlessEqual(response.status_code, 200)
            self.assertFalse(self.project_private in response.context['results'])

            response = self.client[user].get(URL, TERMS_1_2)
            self.failUnlessEqual(response.status_code, 200)
            self.assertFalse(self.project_private in response.context['results'])

            response = self.client[user].get(URL, TERMS_1_3)
            self.failUnlessEqual(response.status_code, 200)
            self.assertFalse(response.context['results'] in self.project_private)
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/projects/tests/private_projects.py/PrivateProjectTest.test_search_project/swapped operands of `in`