def METHOD_NAME(self):
    with patch("cura.CuraApplication.CuraApplication.getInstance", MagicMock(return_value=self._application)):
        self._container_manager.clearUserContainers()
    assert self._machine_manager.activeMachine.userChanges.clear.call_count == 1