#NEWLINE# def test_purge_object_single( self ) : #NEWLINE# #INDENT# a = OpenPNM . Phases . GenericPhase ( network = self . net ) #NEWLINE# assert ( a . name in self . controller . keys ( ) ) #NEWLINE# assert ( a in self . controller . values ( ) ) #NEWLINE# assert ( a . controller is self . controller ) #NEWLINE# self . controller . purge_object ( a ) #NEWLINE# assert ( a . name not in self . controller . keys ( ) ) #NEWLINE# assert ( a not in self . controller . values ( ) ) #NEWLINE# assert ( a . controller == { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } )