#NEWLINE# def test_nodegroup_invalid_net_provider( self ) : #NEWLINE# #INDENT# cluster = self . env . create_cluster ( api = False , net_provider = 'nova_network' ) #NEWLINE# resp = self . app . post ( reverse ( 'NodeGroupCollectionHandler' ) , json . dumps ( { #NEWLINE# #INDENT# 'cluster_id' : cluster [ 'id' ] , #NEWLINE# 'name' : 'test_ng' , #NEWLINE# #UNINDENT# } ) , headers = self . default_headers , expect_errors = True ) #NEWLINE# self . assertEquals ( resp . status_code , 403 )