def METHOD_NAME(self, identifier, expect, name=None):
    subject = self._subject(identifier, name)
    if expect and subject.genre:
        assert expect == subject.genre.name
    else:
        assert expect == subject.genre