def test_get_config():
 conf = config.get_config('tests/test-config/valid-config.yaml')
 expected_conf = {'cookiecutters_dir': '/home/example/some-path-to-templates', 'replay_dir': '/home/example/some-path-to-replay-files', 'default_context': {'full_name': 'Firstname Lastname', 'email': 'firstname.lastname@gmail.com', 'github_username': 'example'}, 'abbreviations': {'gh': 'https://github.com/{0}.git', 'bb': 'https://bitbucket.org/{0}'}}
 assert (conf == expected_conf)

def test_get_config ( ) : conf = config . get_config ( 'tests/test-config/valid-config.yaml' ) expected_conf = { 'cookiecutters_dir' : '/home/example/some-path-to-templates' , 'replay_dir' : '/home/example/some-path-to-replay-files' , 'default_context' : { 'full_name' : 'Firstname Lastname' , 'email' : 'firstname.lastname@gmail.com' , 'github_username' : 'example' } , 'abbreviations' : { 'gh' : 'https://github.com/{0}.git' , 'bb' : 'https://bitbucket.org/{0}' } } assert ( conf == expected_conf )
opening and reading config file .