def test_episode_no_name_no_ext():
    # type: () -> None
    """EpisodeInfo with no name or extension
    """
    ep = EpisodeInfo(
        seriesname = 'Scrubs',
        seasonnumber = 1,
        episodenumbers = [2],
        episodename = None,
        filename = None)

    assertEquals(
        ep.generate_filename(),
        'Scrubs - [01x02]')
EpisodeInfo with no name or extension
    
tests/test_name_generation.py