-
-
Save margareteldridge/d6ae76b277627219f1148e13c447e039 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
class basic_feed_parsing(unittest.TestCase): | |
def test_reports_it_has_articles_from_2_article_feed(self): | |
mocks = mox.Mox() | |
mocks.StubOutWithMock(ArticleRssParser, 'get_feed_content') | |
ArticleRssParser\ | |
.get_feed_content('fakefilename')\ | |
.AndReturn(sample_with_2_entries) | |
mocks.ReplayAll() | |
parser = ArticleRssParser("fakefilename") | |
self.assertTrue(parser.HasArticles()) | |
mocks.VerifyAll() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment