#NEWLINE# def test_get_config_with_defaults( ) : #NEWLINE# #INDENT# '\n    A config file that overrides 1 of 3 defaults\n    ' #NEWLINE# conf = config . get_config ( 'tests/test-config/valid-partial-config.yaml' ) #NEWLINE# default_cookiecutters_dir = os . path . expanduser ( '~/.cookiecutters/' ) #NEWLINE# default_replay_dir = os . path . expanduser ( '~/.cookiecutter_replay/' ) #NEWLINE# expected_conf = { #NEWLINE# #INDENT# 'cookiecutters_dir' : default_cookiecutters_dir , #NEWLINE# 'replay_dir' : default_replay_dir , #NEWLINE# 'default_context' : { #NEWLINE# #INDENT# 'full_name' : 'Firstname Lastname' , #NEWLINE# 'email' : 'firstname.lastname@gmail.com' , #NEWLINE# 'github_username' : 'example' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# assert ( conf == expected_conf )