#NEWLINE# def test_security_groups( self ) : #NEWLINE# #INDENT# self . instance_api . describe_instances . return_value = { #NEWLINE# #INDENT# 'reservationSet' : [ fakes . EC2_RESERVATION_2 ] , #NEWLINE# #UNINDENT# } #NEWLINE# retval = api . get_metadata_item ( self . fake_context , [ '2009-04-04' , 'meta-data' , 'security-groups' ] , fakes . ID_OS_INSTANCE_2 , fakes . IP_NETWORK_INTERFACE_1 ) #NEWLINE# self . assertEqual ( '\n' . join ( [ 'groupname3' ] ) , retval )