def test_repo_get_media_since_different_year(in_memory_repo):
    media = in_memory_repo.get_media_since_year(2014)
    assert media == [
        Media("Guardians of the Galaxy", 2014),
        Media("Split", 2016),
        Media("Sing", 2016)
    ]
def test_repo_get_media_by_different_actor(in_memory_repo):
    media = in_memory_repo.get_media_by_actor(Actor("Charlize Theron"))
    assert media == [
        Media("Guardians of the Galaxy", 2014),
        Media("Prometheus", 2012),
        Media("Guardians of the Galaxy", 2011)
    ]
def test_repo_get_media_by_different_genre(in_memory_repo):
    media = in_memory_repo.get_media_by_genre(Genre("Sci-Fi"))
    assert media == [
        Media("Guardians of the Galaxy", 2014),
        Media("Prometheus", 2012)
    ]
def test_repo_get_media_by_genre(in_memory_repo):
    media = in_memory_repo.get_media_by_genre(Genre("Horror"))
    assert media == [Media("Split", 2016)]
def test_repo_get_media_by_actor(in_memory_repo):
    media = in_memory_repo.get_media_by_actor(Actor("Matthew McConaughey"))
    assert media == [Media("Sing", 2016)]
def test_repo_get_media_by_duplicate_title(in_memory_repo):
    media = in_memory_repo.get_media_by_title("Guardians of the Galaxy")
    assert media == [
        Media("Guardians of the Galaxy", 2014),
        Media("Guardians of the Galaxy", 2011)
    ]
def test_repo_get_media_by_second_title(in_memory_repo):
    media = in_memory_repo.get_media_by_title("Split")
    assert media == [Media("Split", 2016)]
def test_repo_get_media_by_title(in_memory_repo):
    media = in_memory_repo.get_media_by_title("Prometheus")
    assert media == [Media("Prometheus", 2012)]
def test_repo_get_different_media(in_memory_repo):
    media = in_memory_repo.get_media(2)
    assert media == Media("Prometheus", 2012)
def test_repo_get_media(in_memory_repo):
    media = in_memory_repo.get_media(1)
    assert media == Media("Guardians of the Galaxy", 2014)
def test_repo_get_media_since_year(in_memory_repo):
    media = in_memory_repo.get_media_since_year(2016)
    assert media == [Media("Split", 2016), Media("Sing", 2016)]
def test_repo_get_media_by_different_year(in_memory_repo):
    media = in_memory_repo.get_media_by_year(2016)
    assert media == [Media("Split", 2016), Media("Sing", 2016)]
def test_repo_get_media_by_year(in_memory_repo):
    media = in_memory_repo.get_media_by_year(2014)
    assert media == [Media("Guardians of the Galaxy", 2014)]
def test_repo_get_media_by_different_director(in_memory_repo):
    media = in_memory_repo.get_media_by_director(Director("James Gunn"))
    assert media == [
        Media("Guardians of the Galaxy", 2014),
        Media("Guardians of the Galaxy", 2011)
    ]
def test_repo_get_media_by_director(in_memory_repo):
    media = in_memory_repo.get_media_by_director(Director("Ridley Scott"))
    assert media == [Media("Prometheus", 2012)]