Пример #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.')