(self)
| 1842 | pass # TODO |
| 1843 | |
| 1844 | def test_dunder_ior(self): |
| 1845 | super_, sub_, _, _, _, _ = self._create_sets() |
| 1846 | |
| 1847 | # basic set math |
| 1848 | sub_ |= super_ |
| 1849 | eq_(sub_, super_) |
| 1850 | super_ |= sub_ |
| 1851 | eq_(super_, super_) |
| 1852 | |
| 1853 | # totally different sets |
| 1854 | unique1 = util.IdentitySet([1]) |
| 1855 | unique2 = util.IdentitySet([2]) |
| 1856 | unique1 |= unique2 |
| 1857 | eq_(unique1, util.IdentitySet([1, 2])) |
| 1858 | eq_(unique2, util.IdentitySet([2])) |
| 1859 | |
| 1860 | # not an IdentitySet |
| 1861 | def should_raise(): |
| 1862 | unique = util.IdentitySet([1]) |
| 1863 | not_an_identity_set = object() |
| 1864 | unique |= not_an_identity_set |
| 1865 | |
| 1866 | assert_raises(TypeError, should_raise) |
| 1867 | |
| 1868 | def test_difference(self): |
| 1869 | _, _, twin1, twin2, _, _ = self._create_sets() |
nothing calls this directly
no test coverage detected