new_contents: #!/usr/bin/env python
  #encoding:utf-8
  #author:dbr/Ben
  #project:tvnamer
  #repository:http://github.com/dbr/tvnamer
  #license:Creative Commons GNU GPL v2
  # http://creativecommons.org/licenses/GPL/2.0/
  
  """Tests the FileParser API
  """
  
  from tvnamer.utils import FileParser, EpisodeInfo, DatedEpisodeInfo, NoSeasonEpisodeInfo
  
  
  def test_episodeinfo():
      """Parsing a s01e01 episode should return EpisodeInfo class
      """
      p = FileParser("scrubs.s01e01.avi").parse()
      assert isinstance(p, EpisodeInfo)
  
  
  def test_datedepisodeinfo():
      """Parsing a 2009.06.05 episode should return DatedEpisodeInfo class
      """
      p = FileParser("scrubs.2009.06.05.avi").parse()
      assert isinstance(p, DatedEpisodeInfo)
  
  
  def test_noseasonepisodeinfo():
      """Parsing a e23 episode should return NoSeasonEpisodeInfo class
      """
      p = FileParser("scrubs - e23.avi").parse()
      assert isinstance(p, NoSeasonEpisodeInfo)
  
subject: Test FileParser returns correct object type