#NEWLINE# def test_getAdminList( self ) : #NEWLINE# #INDENT# "\n        Retrieving the admin list returns a list of L{muc.AdminItem}s\n\n        The request asks for the affiliation C{'admin'}.\n        " #NEWLINE# d = self . protocol . getAdminList ( self . roomJID ) #NEWLINE# iq = self . stub . output [ ( - 1 ) ] #NEWLINE# query = ( "/iq/query[@xmlns='%s']/item[@xmlns='%s']" % ( muc . NS_MUC_ADMIN , muc . NS_MUC_ADMIN ) ) #NEWLINE# items = xpath . queryForNodes ( query , iq ) #NEWLINE# self . assertEquals ( 'admin' , items [ 0 ] . getAttribute ( 'affiliation' ) ) #NEWLINE# response = toResponse ( iq , 'result' ) #NEWLINE# query = response . addElement ( ( NS_MUC_ADMIN , 'query' ) ) #NEWLINE# self . stub . send ( response ) #NEWLINE# return query