def testShouldDeleteAnEntry(self): self.feed.save() self.assertEquals(1, len(Feed.findAll())) self.feed.delete() self.assertEquals(0, len(Feed.findAll()))
def testShouldSaveAFeedAndReturnAListWithOneFeedOnly(self): self.feed.save() self.assertEquals(1, len(Feed.findAll()))
def testShouldSaveMoreThanOneFeedAndReturnThem(self): self.feed.save() Feed(url='some.other.url').save() self.assertEquals(2, len(Feed.findAll()))
def testShouldProvideEmptyListIfNoFeedsExist(self): self.assertEquals([], Feed.findAll())