Last active
December 2, 2021 19:04
-
-
Save margareteldridge/0bca15c370e5eb5c2c805be088cd42f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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