#NEWLINE# def test_mock_configuration_context_manager( self ) : #NEWLINE# #INDENT# one = self . getters . get ( 'one' ) #NEWLINE# three = self . getters . get_int ( 'three' , default = 3 ) #NEWLINE# with testing . MockConfiguration ( dict ( one = 7 ) , namespace = self . namespace ) : #NEWLINE# #INDENT# assert_equal ( one , 7 ) #NEWLINE# assert_equal ( three , 3 ) #NEWLINE# #UNINDENT# assert_raises ( errors . ConfigurationError , self . getters . get ( 'one' ) )