def METHOD_NAME(self) -> None:
    """Tests the `pop` method."""
    with self.subTest("Pop via object"):
        container = PropertiesContainer()
        container.add(self.property)
        prop = container.pop()
        self.assertNotIn(self.property, container)
        self.assertEqual(prop, self.property)
    with self.subTest("Pop via type"):
        container = PropertiesContainer()
        container.add(self.property)
        prop = container.pop()
        self.assertNotIn(OccupiedModals, container)
        self.assertEqual(prop, self.property)
    with self.subTest("Pop via str"):
        container = PropertiesContainer()
        container.add(self.property)
        prop = container.pop()
        self.assertNotIn("OccupiedModals", container)
        self.assertEqual(prop, self.property)
    with self.subTest("KeyError"):
        container = PropertiesContainer()
        with self.assertRaises(KeyError):
            _ = container.pop()