def _test_filter_list_by(self, key, value, expected_number_of_results):

        res = self.get_list(params={key: value, u'limit': 100})
        objects = res.json["objects"]

        # validate
        self.assertEqual(len(objects), expected_number_of_results)
        for obj in objects:
            if value:
                # can't use assertEqual here because for foriegn keys,
                # the filter must be an id
                # but the value in the response is an uri
                self.assertTrue(str(value) in obj[key])
            else:
                # case for value being None
                self.assertEqual(value, obj[key])
Performs a get on the list with the supplied filter.
dataset/ETHPy150Open mozilla/moztrap/tests/case/api/crud.py/ApiCrudCases._test_filter_list_by