def test_episode_from_file(self): feed_file = '%s/tests/feed.xml' % os.popen("git rev-parse --show-toplevel").read().strip() robots_podcast = Podcast.from_file_feed(feed_file) self.assertEqual(len(robots_podcast.episodes), 185) self.assertEqual(robots_podcast.title, 'Robots - The Podcast for News and Views on Robotics')