equal
deleted
inserted
replaced
559 return num > 1 |
559 return num > 1 |
560 return num == self.expected |
560 return num == self.expected |
561 |
561 |
562 @lltrace |
562 @lltrace |
563 def __call__(self, cls, req, rset=None, **kwargs): |
563 def __call__(self, cls, req, rset=None, **kwargs): |
564 return rset is not None and self.match_expected(rset.rowcount) |
564 return int(rset is not None and self.match_expected(rset.rowcount)) |
565 |
565 |
566 |
566 |
567 class multi_columns_rset(multi_lines_rset): |
567 class multi_columns_rset(multi_lines_rset): |
568 """If `nb` is specified, return 1 if the result set has exactly `nb` column |
568 """If `nb` is specified, return 1 if the result set has exactly `nb` column |
569 per row. Else (`nb` is None), return 1 if the result set contains *at least* |
569 per row. Else (`nb` is None), return 1 if the result set contains *at least* |