#NEWLINE# def test_format_data_user_settings( self ) : #NEWLINE# #INDENT# data = utils . format_user_and_project_subscriptions ( self . user ) #NEWLINE# expected = [ { #NEWLINE# #INDENT# 'node' : { #NEWLINE# #INDENT# 'id' : self . user . _id , #NEWLINE# 'title' : 'User Notifications' , #NEWLINE# #UNINDENT# } , #NEWLINE# 'kind' : 'heading' , #NEWLINE# 'children' : utils . format_user_subscriptions ( self . user ) , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'node' : { #NEWLINE# #INDENT# 'id' : '' , #NEWLINE# 'title' : 'Project Notifications' , #NEWLINE# #UNINDENT# } , #NEWLINE# 'kind' : 'heading' , #NEWLINE# 'children' : utils . format_data ( self . user , utils . get_configured_projects ( self . user ) ) , #NEWLINE# #UNINDENT# } ] #NEWLINE# assert_equal ( data , expected )