#NEWLINE# def test_result_of_config_scope_contains_keys( conf_scope ) : #NEWLINE# #INDENT# cfg = conf_scope ( ) #NEWLINE# assert ( set ( cfg . keys ( ) ) == { 'a' , 'b' , 'c' , 'd' , 'e' , 'f' , 'composit1' , 'composit2' , 'deriv' } ) #NEWLINE# assert ( cfg [ 'a' ] == 1 ) #NEWLINE# assert ( cfg [ 'b' ] == 2.0 ) #NEWLINE# assert cfg [ 'c' ] #NEWLINE# assert ( cfg [ 'd' ] == 'string' ) #NEWLINE# assert ( cfg [ 'e' ] == [ 1 , 2 , 3 ] ) #NEWLINE# assert ( cfg [ 'f' ] == { #NEWLINE# #INDENT# 'a' : 'b' , #NEWLINE# 'c' : 'd' , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( conf_scope [ 'composit1' ] == 3.0 ) #NEWLINE# assert ( cfg [ 'composit2' ] == 'dada' ) #NEWLINE# assert ( cfg [ 'deriv' ] == 23 )