#NEWLINE# def test_option_context_scope( self ) : #NEWLINE# #INDENT# original_value = 60 #NEWLINE# context_value = 10 #NEWLINE# option_name = 'a' #NEWLINE# self . cf . register_option ( option_name , original_value ) #NEWLINE# ctx = self . cf . option_context ( option_name , context_value ) #NEWLINE# self . assertEqual ( self . cf . get_option ( option_name ) , original_value ) #NEWLINE# with ctx : #NEWLINE# #INDENT# self . assertEqual ( self . cf . get_option ( option_name ) , context_value ) #NEWLINE# #UNINDENT# self . assertEqual ( self . cf . get_option ( option_name ) , original_value )