def METHOD_NAME(self):
    request = self.rf.get("/")
    request.member = None
    album = Album(
        title="test_case", date=datetime(year=2017, month=1, day=1), slug="test"
    )
    album.save()
    self.assertEqual(Album.objects.count(), 1)
    with self.subTest(membership=None):
        albums = Album.objects.all()
        albums = get_annotated_accessible_albums(request, albums)
        for album in albums:
            self.assertFalse(album.accessible)
    request.member = self.member
    with self.subTest(membership=None):
        albums = Album.objects.all()
        albums = get_annotated_accessible_albums(request, albums)
        for album in albums:
            self.assertFalse(album.accessible)
    membership = Membership.objects.create(
        user=self.member,
        type=Membership.MEMBER,
        since=datetime(year=2016, month=1, day=1),
    )
    with self.subTest(
        membership_since=membership.since, membership_until=membership.until
    ):
        albums = Album.objects.all()
        albums = get_annotated_accessible_albums(request, albums)
        for album in albums:
            self.assertTrue(album.accessible)
    membership.until = datetime(year=2016, month=1, day=1)
    membership.save()
    with self.subTest(
        membership_since=membership.since, membership_until=membership.until
    ):
        albums = Album.objects.all()
        albums = get_annotated_accessible_albums(request, albums)
        for album in albums:
            self.assertFalse(album.accessible)
    membership.until = datetime(year=2017, month=1, day=1)
    membership.save()
    with self.subTest(
        membership_since=membership.since, membership_until=membership.until
    ):
        albums = Album.objects.all()
        albums = get_annotated_accessible_albums(request, albums)
        for album in albums:
            self.assertTrue(album.accessible)