def test_get_list_filter_in_operator(self):
        """
        REST API: Test 'in' filter on field_integer
        """
        client = self.app.test_client()
        token = self.login(client, USERNAME_ADMIN, PASSWORD_ADMIN)

        with model1_data(self.appbuilder.session, 5) as models:
            field_integers = [models[0].field_integer, models[1].field_integer]
            expected_results = [
                {
                    "field_date": (
                        model.field_date.isoformat() if model.field_date else None
                    ),
                    "field_float": float(model.field_float),
                    "field_integer": model.field_integer,
                    "field_string": model.field_string,
                }
                for model in models[:2]
            ]

            arguments = {
                API_FILTERS_RIS_KEY: [
                    {"col": "field_integer", "opr": "in", "value": field_integers}
                ],
                "order_column": "field_integer",
                "order_direction": "asc",
            }

            uri = f"api/v1/model1api/?q={prison.dumps(arguments)}"
            rv = self.auth_client_get(client, token, uri)
            data = json.loads(rv.data.decode("utf-8"))

            self.assertEqual(rv.status_code, 200)
            actual_results = data[API_RESULT_RES_KEY]
            self.assertEqual(len(actual_results), len(expected_results))
            for result in expected_results:
                self.assertIn(result, actual_results)

        REST API: Test 'in' filter on field_integer
        
tests/test_api.py