'If an ``Application`` is configured with a volume on a node but is no
longer configured to on that node, a change to stop that application is
calculated.'

def test_moved_volume_needs_changes(self):

    application = APPLICATION_WITH_VOLUME_SIZE
    manifestation = application.volume.manifestation
    local_state = EMPTY_NODESTATE.set(devices={UUID(manifestation.dataset_id): FilePath('/dev/foo')}, paths={manifestation.dataset_id: FilePath('/foo/bar')}, manifestations={manifestation.dataset_id: manifestation}, applications=[application])
    local_config = to_node(EMPTY_NODESTATE)
    assert_application_calculated_changes(self, local_state, local_config, set(), sequentially(changes=[in_parallel(changes=[StopApplication(application=application)])]))
