| 1830 | is_false(bool(need), "%d Remaining classes: %r" % (len(need), need)) |
| 1831 | |
| 1832 | def test_compare_labels(self): |
| 1833 | for fixtures_, compare_values in [ |
| 1834 | (self.fixtures, True), |
| 1835 | (self.dont_compare_values_fixtures, False), |
| 1836 | ]: |
| 1837 | for fixture in fixtures_: |
| 1838 | case_a = fixture() |
| 1839 | case_b = fixture() |
| 1840 | |
| 1841 | for a, b in itertools.combinations_with_replacement( |
| 1842 | range(len(case_a)), 2 |
| 1843 | ): |
| 1844 | if a == b: |
| 1845 | is_true( |
| 1846 | case_a[a].compare( |
| 1847 | case_b[b], |
| 1848 | compare_annotations=True, |
| 1849 | compare_values=compare_values, |
| 1850 | ), |
| 1851 | f"{case_a[a]!r} != {case_b[b]!r} (index {a} {b})", |
| 1852 | ) |
| 1853 | else: |
| 1854 | is_false( |
| 1855 | case_a[a].compare( |
| 1856 | case_b[b], |
| 1857 | compare_annotations=True, |
| 1858 | compare_values=compare_values, |
| 1859 | ), |
| 1860 | f"{case_a[a]!r} == {case_b[b]!r} (index {a} {b})", |
| 1861 | ) |
| 1862 | |
| 1863 | def test_compare_col_identity(self): |
| 1864 | stmt1 = ( |