Skip to content

Instantly share code, notes, and snippets.

@margareteldridge
Last active December 2, 2021 19:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save margareteldridge/0bca15c370e5eb5c2c805be088cd42f3 to your computer and use it in GitHub Desktop.
Save margareteldridge/0bca15c370e5eb5c2c805be088cd42f3 to your computer and use it in GitHub Desktop.
def test_reports_it_has_articles_from_2_article_feed(self):
self.mocks.StubOutWithMock(ArticleRssParser, 'get_feed_content')
ArticleRssParser\
.get_feed_content('fakefilename')\
.AndReturn(sample_rss_with_2_entries)
with replay(self.mocks):
parser = ArticleRssParser("fakefilename")
self.assertTrue(parser.HasArticles())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment