#NEWLINE# def test_cluster_plugin_link_fail_creation( self ) : #NEWLINE# #INDENT# resp = self . app . post ( reverse ( 'ClusterPluginLinkCollectionHandler' , kwargs = { #NEWLINE# #INDENT# 'cluster_id' : self . cluster [ 'id' ] , #NEWLINE# #UNINDENT# } ) , jsonutils . dumps ( { #NEWLINE# #INDENT# 'title' : self . link_data [ 'title' ] , #NEWLINE# 'description' : self . link_data [ 'description' ] , #NEWLINE# #UNINDENT# } ) , headers = self . default_headers , expect_errors = True ) #NEWLINE# self . assertEqual ( 400 , resp . status_code ) #NEWLINE# self . assertItemsEqual ( [ ] , resp . cluster . plugin_links )