def test_datedepisodeinfo_naming():
    """Parsing a 2009.06.05 episode should return DatedEpisodeInfo class
    """
    p = FileParser("scrubs.2009.06.05.avi").parse()
    assertType(p, DatedEpisodeInfo)
    assertEquals(p.generate_filename(), "scrubs - [2009-06-05].avi")
Parsing a 2009.06.05 episode should return DatedEpisodeInfo class
    
tests/test_fileparse_api.py