#NEWLINE# def test_moved_volume_needs_changes( self ) : #NEWLINE# #INDENT# '\n        If an ``Application`` is configured with a volume on a node but is no\n        longer configured to on that node, a change to stop that application is\n        calculated.\n        ' #NEWLINE# application = APPLICATION_WITH_VOLUME_SIZE #NEWLINE# manifestation = application . volume . manifestation #NEWLINE# local_state = EMPTY_NODESTATE . set ( devices = { #NEWLINE# #INDENT# UUID ( manifestation . dataset_id ) : FilePath ( b'/dev/foo' ) , #NEWLINE# #UNINDENT# } , paths = { #NEWLINE# #INDENT# manifestation . dataset_id : FilePath ( b'/foo/bar' ) , #NEWLINE# #UNINDENT# } , manifestations = { #NEWLINE# #INDENT# manifestation . dataset_id : manifestation , #NEWLINE# #UNINDENT# } , applications = [ application ] ) #NEWLINE# local_config = to_node ( EMPTY_NODESTATE ) #NEWLINE# assert_application_calculated_changes ( self , local_state , local_state , set ( ) , sequentially ( changes = [ in_parallel ( changes = [ StopApplication ( application = application ) ] ) ] ) )