def METHOD_NAME(configfactory):
    """Assert function returns a specific filename when config (with extension) is set"""
    pid_dir = '/pid'
    settings = configfactory('test.cfg', TMP_CONFIG)
    result = get_pid_filename(settings, pid_dir)
    assert result == pid_dir + '/sopel-test.pid'