Lines Matching refs:knownkey
53 knownkey = self.other.keys()[0]
54 self.assertRaises(KeyError, lambda:d[knownkey])
89 knownkey, knownvalue = self.other.iteritems().next()
91 self.assertEqual(d.get(knownkey, knownvalue), knownvalue)
92 self.assertNotIn(knownkey, d)
115 knownkey, knownvalue = self.other.iteritems().next()
118 self.assertEqual(d.setdefault(knownkey, knownvalue), knownvalue)
119 self.assertEqual(d[knownkey], knownvalue)
121 self.assertEqual(d.pop(knownkey), knownvalue)
122 self.assertNotIn(knownkey, d)
123 self.assertRaises(KeyError, d.pop, knownkey)
125 d[knownkey] = knownvalue
126 self.assertEqual(d.pop(knownkey, default), knownvalue)
127 self.assertNotIn(knownkey, d)
128 self.assertEqual(d.pop(knownkey, default), default)