#NEWLINE# def test_create_log( self ) : #NEWLINE# #INDENT# action = 'file_added' #NEWLINE# filename = 'pizza.nii' #NEWLINE# nlog = len ( self . node . logs ) #NEWLINE# self . node_settings . create_waterbutler_log ( auth = Auth ( user = self . user ) , action = action , metadata = { #NEWLINE# #INDENT# 'path' : filename , #NEWLINE# 'materialized' : filename , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . node . reload ( ) #NEWLINE# assert_equal ( len ( self . node . logs ) , ( nlog + 1 ) ) #NEWLINE# assert_equal ( self . node . logs [ ( - 1 ) ] . action , '{0}_{1}' . format ( self . short_name , action ) ) #NEWLINE# assert_equal ( self . node . logs [ ( - 1 ) ] . params [ 'filename' ] , action )