Lines Matching refs:u2
22 u2 = collections.UserDict(d2)
27 uu2 = collections.UserDict(u2)
45 self.assertIsInstance(u2.fromkeys('one two'.split()), collections.UserDict)
50 self.assertIn(repr(u2), ("{'one': 1, 'two': 2}",
54 all = [d0, d1, d2, u, u0, u1, u2, uu, uu0, uu1, uu2]
60 self.assertEqual(u2["one"], 1)
64 u3 = collections.UserDict(u2)
77 u2a = u2.copy()
78 self.assertEqual(u2a, u2)
86 m2 = MyUserDict(u2)
95 self.assertEqual(sorted(u2.keys()), sorted(d2.keys()))
96 self.assertEqual(sorted(u2.items()), sorted(d2.items()))
97 self.assertEqual(sorted(u2.values()), sorted(d2.values()))
100 for i in u2.keys():
101 self.assertIn(i, u2)
107 t.update(u2)
108 self.assertEqual(t, u2)
111 for i in u2.keys():
112 self.assertEqual(u2.get(i), u2[i])
118 u2[i] = str(i)
120 for k in u2:
122 keys = u2.keys()