def test2(self): L = DictSet(s2d('')) g = L.__iter__() self.assertEqual(set([v for v in g]), set()) self.assertEqual(set(list(L.keys())), set())
def test2(self): L = DictSet(s2d('')) g=L.__iter__() self.assertEqual(set([v for v in g]),set()) self.assertEqual(set(list(L.keys())),set())
def test1(self): L = DictSet(s2d('a1 b576 c5666788 d0')) g = L.__iter__() self.assertEqual(set([v for v in g]) ^ set('abc'), set()) self.assertEqual(set(list(L.keys())) ^ set('abcd'), set())
def test1(self): L = DictSet(s2d('a1 b576 c5666788 d0')) g=L.__iter__() self.assertEqual(set([v for v in g])^set('abc'),set()) self.assertEqual(set(list(L.keys()))^set('abcd'),set())