#NEWLINE# def test__ensure_node_errors( self ) : #NEWLINE# #INDENT# bep = BaseEndpoint ( ) #NEWLINE# gcimock = Mock ( ) #NEWLINE# gcimock . return_value = None #NEWLINE# with patch ( 'pyon.net.endpoint.BaseEndpoint._get_container_instance' , gcimock ) : #NEWLINE# #INDENT# self . assertRaises ( EndpointError , gcimock . _ensure_node )