#NEWLINE# def test_create_blueprint( self ) : #NEWLINE# #INDENT# client = ambari_client . AmbariClient ( self . instance ) #NEWLINE# resp = mock . Mock ( ) #NEWLINE# resp . text = '' #NEWLINE# resp . status_code = 200 #NEWLINE# self . http_client . post . return_value = resp #NEWLINE# client . create_blueprint ( 'cluster_name' , { #NEWLINE# #INDENT# 'some' : 'data' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . http_client . post . assert_called_with ( 'http://1.2.3.4:8080/api/v1/blueprints/cluster_name' , data = jsonutils . dumps ( { #NEWLINE# #INDENT# 'some' : 'data' , #NEWLINE# #UNINDENT# } ) , verify = False , auth = client . _auth , headers = self . headers )