def check_results(self, expected):
        response = self.client.get(urlparams(self.url, sort='downloads'))
        assert response.status_code == 200
        got = self.get_results(response)

        for addon in expected:
            assert addon.pk in got, '%s is not in %s' % (addon.pk, got)
        return response
This function is not needed outside this utils module.
dataset/ETHPy150Open mozilla/addons-server/src/olympia/lib/es/tests/test_commands.py/TestIndexCommand.check_results--crossover with--dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/graphics/utils.py/_import_mpl