-
-
Save margareteldridge/1602c1980a651e346d480c7fb595f382 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 testme(unittest.TestCase): | |
def test_recognizesEntries(self): | |
url = "http://agileinaflash.com/feeds/posts/default" | |
content = urllib2.urlopen(url).read() # 1 | |
self.assertGreater(len(content),0) # 2 | |
open("localfeed.rss", "w").write(content) # 3 | |
sut = ArticleRssParser('localfeed.rss') # 4 | |
self.assertTrue(sut.HasArticles()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment