#NEWLINE# def cleanUp( self ) : #NEWLINE# #INDENT# ' Method should be called to destroy all machines and therefore all\n            namespaces and interfaces.\n        ' #NEWLINE# for endpoint in self . _endpoints . keys ( ) : #NEWLINE# #INDENT# endpoint . destroy ( ) #NEWLINE# #UNINDENT# assert ( len ( endpoint . _endpoints ) == 0 )