def test_locale_view(self):
        locale = LocaleFactory.create()

        # Locale requires valid project with resources
        ResourceFactory.create(project__locales=[locale])

        with patch('pontoon.base.views.render', wraps=render) as mock_render:
            self.client.get('/{}/'.format(locale.code))
            assert_equal(mock_render.call_args[0][2]['locale'], locale)
Checks if locale page is returned properly.
dataset/ETHPy150Open mozilla/pontoon/pontoon/base/tests/test_views.py/LocaleTests.test_locale_view