#NEWLINE# def test_change_database( self ) : #NEWLINE# #INDENT# item = self . add_item_fixture ( year = 2000 ) #NEWLINE# item . write ( ) #NEWLINE# mediafile = MediaFile ( item . path ) #NEWLINE# self . assertEqual ( 2000 , mediafile . year ) #NEWLINE# config [ 'zero' ] = { #NEWLINE# #INDENT# 'fields' : [ 'year' ] , #NEWLINE# 'update_database' : True , #NEWLINE# #UNINDENT# } #NEWLINE# self . load_plugins ( 'zero' ) #NEWLINE# item . write ( ) #NEWLINE# mediafile = MediaFile ( item . path ) #NEWLINE# self . assertEqual ( item [ 'year' ] , 0 ) #NEWLINE# self . assertIsNone ( mediafile . year )