| 1706 | is_false(bool(need), "%d Remaining classes: %r" % (len(need), need)) |
| 1707 | |
| 1708 | def test_compare_labels(self): |
| 1709 | for fixtures_, compare_values in [ |
| 1710 | (self.fixtures, True), |
| 1711 | (self.dont_compare_values_fixtures, False), |
| 1712 | ]: |
| 1713 | for fixture in fixtures_: |
| 1714 | case_a = fixture() |
| 1715 | case_b = fixture() |
| 1716 | |
| 1717 | for a, b in itertools.combinations_with_replacement( |
| 1718 | range(len(case_a)), 2 |
| 1719 | ): |
| 1720 | if a == b: |
| 1721 | is_true( |
| 1722 | case_a[a].compare( |
| 1723 | case_b[b], |
| 1724 | compare_annotations=True, |
| 1725 | compare_values=compare_values, |
| 1726 | ), |
| 1727 | f"{case_a[a]!r} != {case_b[b]!r} (index {a} {b})", |
| 1728 | ) |
| 1729 | else: |
| 1730 | is_false( |
| 1731 | case_a[a].compare( |
| 1732 | case_b[b], |
| 1733 | compare_annotations=True, |
| 1734 | compare_values=compare_values, |
| 1735 | ), |
| 1736 | f"{case_a[a]!r} == {case_b[b]!r} (index {a} {b})", |
| 1737 | ) |
| 1738 | |
| 1739 | def test_compare_col_identity(self): |
| 1740 | stmt1 = ( |