view tests/couchdb/FeedTests.py @ 173:3bcf39181f6e

pull the calculation of the epxire date up into AbstractBackend
author dirk
date Fri, 09 Sep 2011 17:19:16 +0200
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()