def test_get_list_dotted_om_field(self):
        """
        REST Api: Test get list with dotted O-M related field
        """
        client = self.app.test_client()
        token = self.login(client, USERNAME_ADMIN, PASSWORD_ADMIN)

        with model_om_parent_data(
            self.appbuilder.session, MODEL1_DATA_SIZE, MODELOMCHILD_DATA_SIZE
        ):
            rv = self.auth_client_get(client, token, "api/v1/modeldottedomparentapi/")
            data = json.loads(rv.data.decode("utf-8"))
            self.assertEqual(rv.status_code, 200)
            self.assertEqual(data["count"], MODEL1_DATA_SIZE)
            self.assertEqual(len(data[API_RESULT_RES_KEY]), self.model1api.page_size)
            expected_rel_field = [
                {"field_string": f"text0.{i}"} for i in range(1, MODELOMCHILD_DATA_SIZE)
            ]
            expected_rel_field.sort(key=lambda x: x["field_string"])
            result_rel_field = data[API_RESULT_RES_KEY][0]["children"]
            result_rel_field.sort(key=lambda x: x["field_string"])
            self.assertEqual(result_rel_field, expected_rel_field)

        REST Api: Test get list with dotted O-M related field
        
tests/test_api.py