#NEWLINE# def test_update_fields_project( self ) : #NEWLINE# #INDENT# num_logs = len ( self . project . logs ) #NEWLINE# newfields = { #NEWLINE# #INDENT# 'type' : 'project' , #NEWLINE# 'id' : '313131' , #NEWLINE# 'name' : 'A PROJECT' , #NEWLINE# #UNINDENT# } #NEWLINE# self . node_settings . update_fields ( newfields , self . project , Auth ( self . project . creator ) ) #NEWLINE# assert_equals ( self . node_settings . figshare_id , '313131' ) #NEWLINE# assert_equals ( self . node_settings . figshare_type , 'project' ) #NEWLINE# assert_equals ( self . node_settings . figshare_title , 'A PROJECT' ) #NEWLINE# assert_equals ( len ( self . project . logs ) , ( num_logs + 1 ) )