def METHOD_NAME(self) -> None:
    """Tests the `remove` method."""
    with self.subTest("Remove via object"):
        container = PropertiesContainer()
        container.add(self.property)
        container.remove(self.property)
        self.assertNotIn(self.property, container)
    with self.subTest("Remove via type"):
        container = PropertiesContainer()
        container.add(self.property)
        container.remove(OccupiedModals)
        self.assertNotIn(OccupiedModals, container)
    with self.subTest("Remove via str"):
        container = PropertiesContainer()
        container.add(self.property)
        container.remove("OccupiedModals")
        self.assertNotIn("OccupiedModals", container)
    with self.subTest("TypeError"):
        container = PropertiesContainer()
        container.add(self.property)
        with self.assertRaises(TypeError):
            container.remove(1)
    with self.subTest("KeyError"):
        container = PropertiesContainer()
        container.add(self.property)
        with self.assertRaises(KeyError):
            container.remove("MissingProperty")