Home
last modified time | relevance | path

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

/external/python/cpython2/Lib/test/
Dtest_descr.py315 def spamlist(l, memo=None): function
317 return spam.spamlist(l)
320 copy._deepcopy_dispatch[spam.spamlist] = spamlist
322 self.binop_test(spamlist([1]), spamlist([2]), spamlist([1,2]), "a+b",
324 self.binop_test(spamlist([1,2,3]), 2, 1, "b in a", "__contains__")
325 self.binop_test(spamlist([1,2,3]), 4, 0, "b in a", "__contains__")
326 self.binop_test(spamlist([1,2,3]), 1, 2, "a[b]", "__getitem__")
327 self.ternop_test(spamlist([1,2,3]), 0, 2, spamlist([1,2]), "a[b:c]",
329 self.setop_test(spamlist([1]), spamlist([2]), spamlist([1,2]), "a+=b",
331 self.setop_test(spamlist([1,2]), 3, spamlist([1,2,1,2,1,2]), "a*=b",
[all …]
/external/python/cpython3/Lib/test/
Dtest_descr.py298 def spamlist(l, memo=None): function
300 return spam.spamlist(l)
303 copy._deepcopy_dispatch[spam.spamlist] = spamlist
305 self.binop_test(spamlist([1]), spamlist([2]), spamlist([1,2]), "a+b",
307 self.binop_test(spamlist([1,2,3]), 2, 1, "b in a", "__contains__")
308 self.binop_test(spamlist([1,2,3]), 4, 0, "b in a", "__contains__")
309 self.binop_test(spamlist([1,2,3]), 1, 2, "a[b]", "__getitem__")
310 self.sliceop_test(spamlist([1,2,3]), 0, 2, spamlist([1,2]), "a[b:c]",
312 self.setop_test(spamlist([1]), spamlist([2]), spamlist([1,2]), "a+=b",
314 self.setop_test(spamlist([1,2]), 3, spamlist([1,2,1,2,1,2]), "a*=b",
[all …]