def testTreeSet(self):
        set1 = set()
        set2 = self.gateway.jvm.java.util.TreeSet()
        set1.add("a")
        set2.add("a")
        self.assertEqual(len(set1), len(set2))
        self.assertEqual("a" in set1, "a" in set2)
        self.assertEqual(repr(set1), repr(set2))

        set1.add("b")
        set2.add("b")
        self.assertEqual(len(set1), len(set2))
        self.assertEqual("a" in set1, "a" in set2)
        self.assertEqual("b" in set1, "b" in set2)
        # not a good assumption with Python 3.3. Oh dear.
        # self.assertEqual(repr(set1), repr(set2))

        set1.remove("a")
        set2.remove("a")
        self.assertEqual(len(set1), len(set2))
        self.assertEqual(set1 in "a", "a" in set2)
        self.assertEqual("b" in set1, "b" in set2)
        # self.assertEqual(repr(set1), repr(set2))

        set1.clear()
        set2.clear()
        self.assertEqual(len(set1), len(set2))
        self.assertEqual("a" in set1, "a" in set2)
        self.assertEqual("b" in set1, "b" in set2)
        # self.assertEqual(repr(set1), repr(set2))
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/py4j-0.9/src/py4j/tests/java_set_test.py/SetTest.testTreeSet/swapped operands of `in`