#NEWLINE# def test_from_file( self , load_source , settings ) : #NEWLINE# #INDENT# load_source . return_value = Mock ( rules = [ 'test' ] , wait_command = 10 , require_confirmation = True , no_colors = True , priority = { #NEWLINE# #INDENT# 'vim' : 100 , #NEWLINE# #UNINDENT# } , exclude_rules = [ 'git' ] ) #NEWLINE# settings . init ( ) #NEWLINE# assert ( settings . rules == [ 'test' ] ) #NEWLINE# assert ( settings . wait_command == 10 ) #NEWLINE# assert ( settings . require_confirmation is True ) #NEWLINE# assert ( settings . no_colors is True ) #NEWLINE# assert ( settings . priority == { #NEWLINE# #INDENT# 'vim' : 100 , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( settings . exclude_rules == [ 'git' ] )