def METHOD_NAME(
    cobbler_api, test_src, is_symlink, test_dst, expected_result
):
    # Arrange
    if is_symlink and test_src:
        os.symlink("/foobar/test", test_src)
    elif test_src:
        open(test_src, "w").close()
    # Act
    result = filesystem_helpers.is_safe_to_hardlink(test_src, test_dst, cobbler_api)
    # Cleanup
    os.remove(test_src)
    # Assert
    assert expected_result == result