#NEWLINE# def test_create_port_postcommit( self ) : #NEWLINE# #INDENT# context = mock . Mock ( current = fake_port_object ) #NEWLINE# resp = self . _mock_req_resp ( requests . codes . created ) #NEWLINE# with mock . patch ( 'requests.request' , return_value = resp ) as mock_method : #NEWLINE# #INDENT# self . create_port_postcommit ( context ) #NEWLINE# self . _test_response ( context , 'post' , 'port' , mock_method )