Mercurial > hg > Feedworm
view tests/couchdb/FeedTests.py @ 196:a9ba3e3a9a9a
log the publish date of a feed entry that's stored in the database
author | dirk |
---|---|
date | Tue, 24 Jan 2012 08:25:29 +0100 |
parents | 7217b060b39c |
children | 1220e62b63dd |
line wrap: on
line source
from backend.couchdb.Feed import Feed from backend.couchdb.CouchDbBackend import CouchDbBackend import unittest class Test(unittest.TestCase): def setUp(self): self.database = CouchDbBackend().database def _testAllFeeds(self): allFeeds = Feed.all(self.database) self.assertEqual(2, len(allFeeds)) def testFeedPropertyAccess(self): feed = Feed.all(self.database)[0] self.assertEquals("BBC", feed.title) if __name__ == "__main__": #import sys;sys.argv = ['', 'Test.testName'] unittest.main()