def most_rented_books_times(self): result = iterStruct() for book in self.__Books_repo._bookList: rentalsList = self.filter_rentals(book, None) if len(rentalsList): result.append(BookTimeRented(book, len(rentalsList))) result.sortIter(lambda x, y: x.get_timesRented() < y.get_timesRented()) return result
def __init__(self): #self._bookList = [] self._bookList = iterStruct()
def __init__(self): self._clientList = iterStruct()
def setUp(self): self._iterTest = iterStruct()
def __init__(self): self._rentalList = iterStruct()