def METHOD_NAME(self):
    submodel = SubModel(name=123)
    self.assertDictEqual(
        {
            "__model__": "Model",
            "uri": "uri",
            "name": "name",
            "models": [submodel.serialize()],
        },
        Model(uri="uri", name="name", models=[submodel]).serialize(),
    )