#NEWLINE# def test_groups( self ) : #NEWLINE# #INDENT# group = self . topo . groups [ 0 ] #NEWLINE# self . assertEqual ( 'webserver_group' , group . name ) #NEWLINE# self . assertEqual ( [ 'websrv' , 'server' ] , group . members ) #NEWLINE# for node in group . get_member_nodes ( ) : #NEWLINE# #INDENT# if ( node . name == 'server' ) : #NEWLINE# #INDENT# 'Test property value' #NEWLINE# props = node . get_properties ( ) #NEWLINE# if ( props and ( 'mem_size' in props . keys ( ) ) ) : #NEWLINE# #INDENT# self . assertEqual ( props [ 'mem_size' ] . value , '4096 MB' )