def METHOD_NAME(self):
    request = self.rf.get("/")
    request.member = None
    album = Album(date=datetime(year=2017, month=1, day=1), slug="test")
    with self.subTest(membership=None):
        self.assertFalse(is_album_accessible(request, album))
    request.member = self.member
    with self.subTest(membership=None):
        self.assertFalse(is_album_accessible(request, album))
    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
    ):
        self.assertTrue(is_album_accessible(request, album))
    membership.until = datetime(year=2016, month=1, day=1)
    membership.save()
    with self.subTest(
        membership_since=membership.since, membership_until=membership.until
    ):
        self.assertFalse(is_album_accessible(request, album))
    membership.until = datetime(year=2017, month=1, day=1)
    membership.save()
    with self.subTest(
        membership_since=membership.since, membership_until=membership.until
    ):
        self.assertTrue(is_album_accessible(request, album))