def test_get_list_col_callable(self):
        """
        REST Api: Test get list of objects with columns as callable
        """
        client = self.app.test_client()
        token = self.login(client, USERNAME_ADMIN, PASSWORD_ADMIN)
        uri = "api/v1/model2callablecolapi/"

        with model2_data(self.appbuilder.session, MODEL2_DATA_SIZE):
            rv = self.auth_client_get(client, token, uri)
            self.assertEqual(rv.status_code, 200)
            data = json.loads(rv.data.decode("utf-8"))
            # Tests count property
            self.assertEqual(data["count"], MODEL2_DATA_SIZE)
            # Tests data result default page size
            self.assertEqual(len(data[API_RESULT_RES_KEY]), self.model1api.page_size)
            results = data[API_RESULT_RES_KEY]
            for i, item in enumerate(results):
                self.assertEqual(
                    item["field_method"], f"{item['field_string']}_field_method"
                )

        REST Api: Test get list of objects with columns as callable
        
tests/test_api.py