def test_not_authed_public_project(self):
        # Clear out existing project with ID=1 if necessary.
        Project.objects.filter(id=1).delete()
        locale = LocaleFactory.create(code='fakelocale')
        project = ProjectFactory.create(id=1, slug='valid-project', locales=[locale])
        resource = ResourceFactory.create(project=project, path='foo.lang', total_strings=1)
        TranslatedResourceFactory.create(resource=resource, locale=locale)

        response = self.client.get('/fakelocale/valid-project/foo.lang/')
        assert_equal(response.status_code, 200)
        # I'd assertTemplateUsed here but it doesn't work on non-DTL
        # templates.
Sets up the connection with the Serf agent and does the
dataset/ETHPy150Open mozilla/pontoon/pontoon/base/tests/test_views.py/TranslateTests.test_not_authed_public_project--crossover with--dataset/ETHPy150Open KushalP/serfclient-py/serfclient/connection.py/SerfConnection.handshake