def METHOD_NAME(self):
    FormDefinition = self.apps.get_model("forms", "FormDefinition")
    fd = FormDefinition.objects.get()
    components = {
        component["key"]: component
        for component in iter_components(fd.configuration)
    }
    with self.subTest("editgrid1"):
        component = components["editgrid1"]
        self.assertNotIn("openWhenEmpty", component)
    with self.subTest("editgrid2"):
        component = components["editgrid2"]
        self.assertFalse(component["openWhenEmpty"])
    with self.subTest("editgrid3"):
        component = components["editgrid3"]
        self.assertFalse(component["openWhenEmpty"])
    with self.subTest("editgrid4"):
        component = components["editgrid4"]
        self.assertFalse(component["openWhenEmpty"])