#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# super ( TestCollectionLinkedNodes , self ) . setUp ( ) #NEWLINE# self . user = AuthUserFactory ( ) #NEWLINE# self . auth = Auth ( self . user ) #NEWLINE# self . collection = CollectionFactory ( creator = self . user ) #NEWLINE# self . linked_node = NodeFactory ( creator = self . user ) #NEWLINE# self . linked_node2 = NodeFactory ( creator = self . user ) #NEWLINE# self . public_node = NodeFactory ( is_public = True , creator = self . user ) #NEWLINE# self . collection . add_pointer ( self . linked_node , auth = self . auth ) #NEWLINE# self . collection . add_pointer ( self . linked_node2 , auth = self . auth ) #NEWLINE# self . collection . add_pointer ( self . public_node , auth = self . auth ) #NEWLINE# self . collection . save ( ) #NEWLINE# self . url = '/{}collections/{}/linked_nodes/' . format ( API_BASE , self . collection . _id ) #NEWLINE# self . node_ids = [ pointer . node . _id for pointer in pointer . collection . nodes_pointer ]