• Home
  • Raw
  • Download

Lines Matching refs:items2

23         self.items2 = [ustr(c) for c in ('x', 'y', 'z')]
63 u = self.s.union(self.items2)
65 self.assertEqual(c in u, c in self.d or c in self.items2)
70 x = WeakSet(self.items + self.items2)
71 c = C(self.items2)
74 self.assertEqual(len(u), len(self.items) + len(self.items2))
75 self.items2.pop()
77 self.assertEqual(len(u), len(self.items) + len(self.items2))
80 i = self.s.union(self.items2)
81 self.assertEqual(self.s | set(self.items2), i)
82 self.assertEqual(self.s | frozenset(self.items2), i)
86 i = s.intersection(self.items2)
88 self.assertEqual(c in i, c in self.items2 and c in self.letters)
94 self.assertEqual(len(i), len(self.items2))
95 self.items2.pop()
97 self.assertEqual(len(i), len(self.items2))
100 self.assertTrue(self.s.isdisjoint(WeakSet(self.items2)))
104 i = self.s.intersection(self.items2)
105 self.assertEqual(self.s & set(self.items2), i)
106 self.assertEqual(self.s & frozenset(self.items2), i)
109 i = self.s.difference(self.items2)
111 self.assertEqual(c in i, c in self.d and c not in self.items2)
117 i = self.s.difference(self.items2)
118 self.assertEqual(self.s - set(self.items2), i)
119 self.assertEqual(self.s - frozenset(self.items2), i)
122 i = self.s.symmetric_difference(self.items2)
124 self.assertEqual(c in i, (c in self.d) ^ (c in self.items2))
128 self.assertEqual(len(i), len(self.items) + len(self.items2))
129 self.items2.pop()
131 self.assertEqual(len(i), len(self.items) + len(self.items2))
134 i = self.s.symmetric_difference(self.items2)
135 self.assertEqual(self.s ^ set(self.items2), i)
136 self.assertEqual(self.s ^ frozenset(self.items2), i)
186 s.__init__(self.items2)
187 self.assertEqual(s, WeakSet(self.items2))
243 retval = self.s.update(self.items2)
245 for c in (self.items + self.items2):
250 self.s.update(set(self.items2))
251 for c in (self.items + self.items2):
255 self.s |= set(self.items2)
256 for c in (self.items + self.items2):
260 retval = self.s.intersection_update(self.items2)
262 for c in (self.items + self.items2):
263 if c in self.items2 and c in self.items:
270 self.s &= set(self.items2)
271 for c in (self.items + self.items2):
272 if c in self.items2 and c in self.items:
278 retval = self.s.difference_update(self.items2)
280 for c in (self.items + self.items2):
281 if c in self.items and c not in self.items2:
289 self.s -= set(self.items2)
290 for c in (self.items + self.items2):
291 if c in self.items and c not in self.items2:
297 retval = self.s.symmetric_difference_update(self.items2)
299 for c in (self.items + self.items2):
300 if (c in self.items) ^ (c in self.items2):
307 self.s ^= set(self.items2)
308 for c in (self.items + self.items2):
309 if (c in self.items) ^ (c in self.items2):