def test_invalid_period(self):
        # If period parameter is invalid value
        self.client.get('/contributors/?period=invalidperiod')
        assert_true(self.mock_render.call_args[0][0]['period'] is None)
        assert_true(self.mock_translations_manager.call_args[0][0] is None)

        # Period shouldn't be negative integer
        self.client.get('/contributors/?period=-6')
        assert_true(self.mock_render.call_args[0][0]['period'] is None)
        assert_true(self.mock_translations_manager.call_args[0][0] is None)
Checks how view handles invalid period, it result in period being None - displays all data.
dataset/ETHPy150Open mozilla/pontoon/pontoon/base/tests/test_views.py/ContributorsTests.test_invalid_period