Home
last modified time | relevance | path

Searched refs:spamlist (Results 1 – 1 of 1) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_descr.py308 def spamlist(l, memo=None): function
310 return spam.spamlist(l)
313 copy._deepcopy_dispatch[spam.spamlist] = spamlist
315 self.binop_test(spamlist([1]), spamlist([2]), spamlist([1,2]), "a+b",
317 self.binop_test(spamlist([1,2,3]), 2, 1, "b in a", "__contains__")
318 self.binop_test(spamlist([1,2,3]), 4, 0, "b in a", "__contains__")
319 self.binop_test(spamlist([1,2,3]), 1, 2, "a[b]", "__getitem__")
320 self.ternop_test(spamlist([1,2,3]), 0, 2, spamlist([1,2]), "a[b:c]",
322 self.setop_test(spamlist([1]), spamlist([2]), spamlist([1,2]), "a+=b",
324 self.setop_test(spamlist([1,2]), 3, spamlist([1,2,1,2,1,2]), "a*=b",
[all …]