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

        arguments = {"order_column": "field_string", "order_direction": "asc"}
        uri = f"api/v1/modeldottedmmapi/?{API_URI_RIS_KEY}={prison.dumps(arguments)}"
        with model_mm_parent_data(self.appbuilder.session, MODEL2_DATA_SIZE, 4):
            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["count"], MODEL2_DATA_SIZE)
            self.assertEqual(
                len(data[API_RESULT_RES_KEY]), self.modeldottedmmapi.page_size
            )
            i = 0
            self.assertEqual(data[API_RESULT_RES_KEY][i]["field_string"], "0")
            self.assertEqual(len(data[API_RESULT_RES_KEY][i]["children"]), 3)
            self.assertIn({"field_integer": 1}, data[API_RESULT_RES_KEY][i]["children"])
            self.assertIn({"field_integer": 2}, data[API_RESULT_RES_KEY][i]["children"])
            self.assertIn({"field_integer": 3}, data[API_RESULT_RES_KEY][i]["children"])

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