Lines Matching refs:spamdict
349 # Testing spamdict operations...
351 def spamdict(d, memo=None):
353 sd = spam.spamdict()
358 copy._deepcopy_dispatch[spam.spamdict] = spamdict
360 self.binop_test(spamdict({1:2}), spamdict({2:1}), -1, "cmp(a,b)",
362 self.binop_test(spamdict({1:2,3:4}), 1, 1, "b in a", "__contains__")
363 self.binop_test(spamdict({1:2,3:4}), 2, 0, "b in a", "__contains__")
364 self.binop_test(spamdict({1:2,3:4}), 1, 2, "a[b]", "__getitem__")
365 d = spamdict({1:2,3:4})
378 for i in type(spamdict({})).__iter__(d):
382 spamd = spamdict(straightd)
385 self.set2op_test(spamdict({1:2,3:4}), 2, 3, spamdict({1:2,2:3,3:4}),
388 class C(spam.spamdict):