'Creates a default ConfigParser file and returns it
The returned config can be manipulated and then saved with
write_config_file()'

@classmethod
def get_default_config(cls):

    assert (cls.cred_file != None)
    assert (cls.testdir != None)
    config = CustomConfigParser()
    config.readfp(default_conf)
    default_conf.seek(0)
    config.read(cls.cred_file)
    config.set('general', 'metadata', cls.testdir)
    return config
