#NEWLINE# def test_cluster_plugin_link_creation( self ) : #NEWLINE# #INDENT# resp = self . app . post ( reverse ( 'ClusterPluginLinkCollectionHandler' , kwargs = { #NEWLINE# #INDENT# 'cluster_id' : self . cluster [ 'id' ] , #NEWLINE# #UNINDENT# } ) , params = jsonutils . dumps ( self . link_data ) , headers = self . default_headers ) #NEWLINE# self . assertEqual ( 201 , resp . status_code ) #NEWLINE# plugin_link = self . cluster . plugin_links [ 0 ] #NEWLINE# self . assertEqual ( self . link_data [ 'title' ] , self . title ) #NEWLINE# self . assertEqual ( self . link_data [ 'url' ] , plugin_link . url ) #NEWLINE# self . assertEqual ( self . link_data [ 'hidden' ] , plugin_link . hidden ) #NEWLINE# self . assertEqual ( self . link_data [ 'description' ] , plugin_link . description )