#NEWLINE# def test_load_and_validate( self ) : #NEWLINE# #INDENT# staticconf . DictConfiguration ( some_class . config , namespace = SomeClass . namespace ) #NEWLINE# some_class = SomeClass ( ) #NEWLINE# assert_equal ( some_class . max , 100 ) #NEWLINE# assert_equal ( some_class . min , 0 ) #NEWLINE# assert_equal ( some_class . ratio , 7.7 ) #NEWLINE# assert_equal ( some_class . alt_ratio , 6.0 ) #NEWLINE# assert_equal ( SomeClass . getters . get ( 'globals' ) , False ) #NEWLINE# assert_equal ( SomeClass . getters . get ( 'enable' ) , 'True' ) #NEWLINE# assert_equal ( SomeClass . getters . get_bool ( 'enable' ) , True ) #NEWLINE# assert_equal ( some_class . msg , None ) #NEWLINE# assert SomeClass . getters . get_regex ( 'matcher' ) . match ( '12345' ) #NEWLINE# assert ( not SomeClass . getters . get_regex ( 'matcher' ) . match ( 'a' ) ) #NEWLINE# assert_equal ( SomeClass . getters . get_list_of_int ( 'options' ) , [ 1 , 7 , 3 , 9 ] ) #NEWLINE# assert_equal ( SomeClass . getters . get_log_level ( 'level' ) , logging . INFO )