def test_invalid_project(self):
        LocaleFactory.create(code='fakelocale')

        response = self.client.get('/fakelocale/invalid-project/path/')
        assert_equal(response.status_code, 404)
If the project is invalid, redirect home.
dataset/ETHPy150Open mozilla/pontoon/pontoon/base/tests/test_views.py/TranslateTests.test_invalid_project