#NEWLINE# def test_mock_configuration( self ) : #NEWLINE# #INDENT# two = self . getters . get_string ( 'two' ) #NEWLINE# stars = self . getters . get_bool ( 'stars' ) #NEWLINE# mock_config = testing . MockConfiguration ( dict ( two = 2 , stars = False ) , namespace = self . namespace ) #NEWLINE# mock_config . setup ( ) #NEWLINE# assert_equal ( two , '2' ) #NEWLINE# assert ( not stars ) #NEWLINE# mock_config . teardown ( ) #NEWLINE# assert_raises ( errors . ConfigurationError , self . getters . get ( 'two' ) )