#NEWLINE# def test_separate_users( self ) : #NEWLINE# #INDENT# self . private_node . add_contributor ( self . user_2 , permissions = [ 'admin' , 'write' , 'read' ] , auth = self . auth ) #NEWLINE# self . private_node . add_contributor ( self . user_3 , permissions = [ 'write' , 'read' ] , auth = self . auth ) #NEWLINE# self . private_node . save ( ) #NEWLINE# ( subbed , removed ) = utils . separate_users ( self . private_node , [ self . user_2 . _id , self . user_3 . _id , self . user_4 . _id ] ) #NEWLINE# assert_equal ( [ self . user_2 . _id , self . user_3 . _id ] , subbed ) #NEWLINE# assert_equal ( [ self . user_4 . _id ] , removed )