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