Lines Matching defs:spamdict
347 # Testing spamdict operations...
349 def spamdict(d, memo=None):
351 sd = spam.spamdict()
356 copy._deepcopy_dispatch[spam.spamdict] = spamdict
358 self.binop_test(spamdict({1:2,3:4}), 1, 1, "b in a", "__contains__")
359 self.binop_test(spamdict({1:2,3:4}), 2, 0, "b in a", "__contains__")
360 self.binop_test(spamdict({1:2,3:4}), 1, 2, "a[b]", "__getitem__")
361 d = spamdict({1:2,3:4})
374 for i in type(spamdict({})).__iter__(d):
378 spamd = spamdict(straightd)
381 self.set2op_test(spamdict({1:2,3:4}), 2, 3, spamdict({1:2,2:3,3:4}),
384 class C(spam.spamdict):