def test_correct_url(tmpdir):
    tmpdir = str(tmpdir)
    aeh = ArchiveEventHandler(None, tmpdir, "/TEST_ROOT")
    filepath = os.path.join(tmpdir, "subdir", "correct_url.txt")
    jottapath = aeh.get_jottapath(filepath)
    assert jottapath == "/TEST_ROOT/subdir/correct_url.txt"