Lines Matching refs: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}), spamdict({2:1}), -1, "cmp(a,b)",
360 self.binop_test(spamdict({1:2,3:4}), 1, 1, "b in a", "__contains__")
361 self.binop_test(spamdict({1:2,3:4}), 2, 0, "b in a", "__contains__")
362 self.binop_test(spamdict({1:2,3:4}), 1, 2, "a[b]", "__getitem__")
363 d = spamdict({1:2,3:4})
376 for i in type(spamdict({})).__iter__(d):
380 spamd = spamdict(straightd)
383 self.set2op_test(spamdict({1:2,3:4}), 2, 3, spamdict({1:2,2:3,3:4}),
386 class C(spam.spamdict):