Lines Matching refs:two
8 d2 = {"one": 1, "two": 2}
9 d3 = {"one": 1, "two": 3, "three": 5}
10 d4 = {"one": None, "two": None}
11 d5 = {"one": 1, "two": 1}
29 self.assertEqual(UserDict.UserDict(one=1, two=2), d2)
31 self.assertEqual(UserDict.UserDict([('one',1), ('two',2)]), d2)
32 self.assertEqual(UserDict.UserDict(dict=[('one',1), ('two',2)]), d2)
34 self.assertEqual(UserDict.UserDict([('one',1), ('two',2)], two=3, three=5), d3)
37 self.assertEqual(UserDict.UserDict.fromkeys('one two'.split()), d4)
38 self.assertEqual(UserDict.UserDict().fromkeys('one two'.split()), d4)
39 self.assertEqual(UserDict.UserDict.fromkeys('one two'.split(), 1), d5)
40 self.assertEqual(UserDict.UserDict().fromkeys('one two'.split(), 1), d5)
41 self.assertTrue(u1.fromkeys('one two'.split()) is not u1)
42 self.assertIsInstance(u1.fromkeys('one two'.split()), UserDict.UserDict)
43 self.assertIsInstance(u2.fromkeys('one two'.split()), UserDict.IterableUserDict)
58 self.assertRaises(KeyError, u1.__getitem__, "two")
62 u3["two"] = 2