示例#1
0
 def test_getFirstItem(self):
     firstItem = self.book.objectValues()[0]
     adapter = INextPreviousProvider(self.book)
     self.assertEqual(
         firstItem, adapter.getFirstItem(), 'Incorrect first item')
示例#2
0
 def test_isFirstItem(self):
     firstItem = self.book.objectValues()[0]
     adapter = INextPreviousProvider(self.book)
     self.assertEqual(
         firstItem, adapter.getFirstItem(), 'First item check failed.')