def test_list_items_with_enum(self):
        """
        REST Api: Test list items with enums
        """
        client = self.app.test_client()
        token = self.login(client, USERNAME_ADMIN, PASSWORD_ADMIN)

        with model_with_enums_data(self.appbuilder.session, 1):
            uri = "api/v1/modelwithenumsapi/"
            rv = self.auth_client_get(client, token, uri)
            data = json.loads(rv.data.decode("utf-8"))
            self.assertEqual(rv.status_code, 200)
            self.assertEqual(
                data["result"], [{"enum1": "e1", "enum2": 2, "enum3": "e3"}]
            )
            self.assertEqual(data["count"], 1)

        REST Api: Test list items with enums
        
tests/test_api.py