-
-
Save margareteldridge/f08a28a29a259ba4e4c57a399910df07 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):result_with_2_entries = {"entries":[1,2]} | |
self.mocks.StubOutWithMock(ArticleRssParser, 'parse_input') | |
ArticleRssParser\ | |
.parse_input('fakefilename')\ | |
.AndReturn(result_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