def METHOD_NAME(p):
    # Given
    slug = p['slug']
    expected = p['expected']
    # When
    actual = EpisodeNumber.from_slug(slug)
    # Then
    if expected is None:
        assert not actual
    else:
        assert actual
        assert expected == actual
        assert slug != actual