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