equal
deleted
inserted
replaced
422 |
422 |
423 - 0 if `mode` == 'any' and no expected values isn't found at all |
423 - 0 if `mode` == 'any' and no expected values isn't found at all |
424 |
424 |
425 - else the number of matching values |
425 - else the number of matching values |
426 |
426 |
427 Notice `mode`='any' with a single expected value has no effect at all. |
427 Notice `mode` = 'any' with a single expected value has no effect at all. |
428 """ |
428 """ |
429 def __init__(self, *expected, **kwargs): |
429 def __init__(self, *expected, **kwargs): |
430 assert expected, self |
430 assert expected, self |
431 if len(expected) == 1 and isinstance(expected[0], set): |
431 if len(expected) == 1 and isinstance(expected[0], set): |
432 self.expected = expected[0] |
432 self.expected = expected[0] |
652 big enough. |
652 big enough. |
653 |
653 |
654 Page size is searched in (respecting order): |
654 Page size is searched in (respecting order): |
655 * a `page_size` argument |
655 * a `page_size` argument |
656 * a `page_size` form parameters |
656 * a `page_size` form parameters |
657 * the :ref:`navigation.page-size` property |
657 * the `navigation.page-size` property (see :ref:`PersistentProperties`) |
658 """ |
658 """ |
659 def __init__(self, nbpages=1): |
659 def __init__(self, nbpages=1): |
660 assert nbpages > 0 |
660 assert nbpages > 0 |
661 self.nbpages = nbpages |
661 self.nbpages = nbpages |
662 |
662 |