#NEWLINE# def test_warn_user( self ) : #NEWLINE# #INDENT# self . private_node . add_contributor ( self . user_2 , permissions = [ 'admin' , 'write' , 'read' ] , auth = self . auth ) #NEWLINE# self . private_node . save ( ) #NEWLINE# self . project . add_contributor ( self . user_3 , permissions = [ 'write' , 'read' ] , auth = self . auth ) #NEWLINE# self . project . save ( ) #NEWLINE# self . sub . email_digest . append ( self . user_3 ) #NEWLINE# self . sub . save ( ) #NEWLINE# self . file_sub . email_transactional . extend ( [ self . user_2 ] ) #NEWLINE# results = utils . users_to_remove ( 'xyz42_file_updated' , self . project , self . private_node ) #NEWLINE# utils . move_subscription ( results , 'xyz42_file_updated' , self . project , 'abc42_file_updated' , self . private_node ) #NEWLINE# assert_equal ( { #NEWLINE# #INDENT# 'email_transactional' : [ ] , #NEWLINE# 'email_digest' : [ self . user_3 . _id ] , #NEWLINE# 'none' : [ ] , #NEWLINE# #UNINDENT# } , results ) #NEWLINE# assert_in ( self . user_3 , self . sub . email_digest )