Lines Matching refs:one
8 d1 = {"one": 1}
9 d2 = {"one": 1, "two": 2}
10 d3 = {"one": 1, "two": 3, "three": 5}
11 d4 = {"one": None, "two": None}
12 d5 = {"one": 1, "two": 1}
30 self.assertEqual(collections.UserDict(one=1, two=2), d2)
32 self.assertEqual(collections.UserDict([('one',1), ('two',2)]), d2)
33 self.assertEqual(collections.UserDict(dict=[('one',1), ('two',2)]),
34 {'dict': [('one', 1), ('two', 2)]})
36 self.assertEqual(collections.UserDict([('one',1), ('two',2)], two=3, three=5), d3)
39 self.assertEqual(collections.UserDict.fromkeys('one two'.split()), d4)
40 self.assertEqual(collections.UserDict().fromkeys('one two'.split()), d4)
41 self.assertEqual(collections.UserDict.fromkeys('one two'.split(), 1), d5)
42 self.assertEqual(collections.UserDict().fromkeys('one two'.split(), 1), d5)
43 self.assertTrue(u1.fromkeys('one two'.split()) is not u1)
44 self.assertIsInstance(u1.fromkeys('one two'.split()), collections.UserDict)
45 self.assertIsInstance(u2.fromkeys('one two'.split()), collections.UserDict)
50 self.assertIn(repr(u2), ("{'one': 1, 'two': 2}",
51 "{'two': 2, 'one': 1}"))
60 self.assertEqual(u2["one"], 1)