Home | History | Annotate | Download | only in test

Lines Matching refs:def

14     def test_exceptions(self):
20 def test_copy_basic(self):
25 def test_copy_copy(self):
27 def __init__(self, foo):
29 def __copy__(self):
36 def test_copy_registry(self):
38 def __new__(cls, foo):
42 def pickle_C(obj):
49 def test_copy_reduce_ex(self):
51 def __reduce_ex__(self, proto):
53 def __reduce__(self):
59 def test_copy_reduce(self):
61 def __reduce__(self):
67 def test_copy_cant(self):
69 def __getattribute__(self, name):
78 def test_copy_atomic(self):
83 def f():
91 def test_copy_list(self):
95 def test_copy_tuple(self):
99 def test_copy_dict(self):
103 def test_copy_inst_vanilla(self):
105 def __init__(self, foo):
107 def __cmp__(self, other):
112 def test_copy_inst_copy(self):
114 def __init__(self, foo):
116 def __copy__(self):
118 def __cmp__(self, other):
123 def test_copy_inst_getinitargs(self):
125 def __init__(self, foo):
127 def __getinitargs__(self):
129 def __cmp__(self, other):
134 def test_copy_inst_getstate(self):
136 def __init__(self, foo):
138 def __getstate__(self):
140 def __cmp__(self, other):
145 def test_copy_inst_setstate(self):
147 def __init__(self, foo):
149 def __setstate__(self, state):
151 def __cmp__(self, other):
156 def test_copy_inst_getstate_setstate(self):
158 def __init__(self, foo):
160 def __getstate__(self):
162 def __setstate__(self, state):
164 def __cmp__(self, other):
171 def test_deepcopy_basic(self):
176 def test_deepcopy_memo(self):
187 def test_deepcopy_issubclass(self):
198 def test_deepcopy_deepcopy(self):
200 def __init__(self, foo):
202 def __deepcopy__(self, memo=None):
209 def test_deepcopy_registry(self):
211 def __new__(cls, foo):
215 def pickle_C(obj):
222 def test_deepcopy_reduce_ex(self):
224 def __reduce_ex__(self, proto):
226 def __reduce__(self):
232 def test_deepcopy_reduce(self):
234 def __reduce__(self):
240 def test_deepcopy_cant(self):
242 def __getattribute__(self, name):
251 def test_deepcopy_atomic(self):
256 def f():
264 def test_deepcopy_list(self):
271 def test_deepcopy_reflexive_list(self):
280 def test_deepcopy_tuple(self):
287 def test_deepcopy_reflexive_tuple(self):
296 def test_deepcopy_dict(self):
303 def test_deepcopy_reflexive_dict(self):
312 def test_deepcopy_keepalive(self):
318 def test_deepcopy_inst_vanilla(self):
320 def __init__(self, foo):
322 def __cmp__(self, other):
329 def test_deepcopy_inst_deepcopy(self):
331 def __init__(self, foo):
333 def __deepcopy__(self, memo):
335 def __cmp__(self, other):
343 def test_deepcopy_inst_getinitargs(self):
345 def __init__(self, foo):
347 def __getinitargs__(self):
349 def __cmp__(self, other):
357 def test_deepcopy_inst_getstate(self):
359 def __init__(self, foo):
361 def __getstate__(self):
363 def __cmp__(self, other):
371 def test_deepcopy_inst_setstate(self):
373 def __init__(self, foo):
375 def __setstate__(self, state):
377 def __cmp__(self, other):
385 def test_deepcopy_inst_getstate_setstate(self):
387 def __init__(self, foo):
389 def __getstate__(self):
391 def __setstate__(self, state):
393 def __cmp__(self, other):
401 def test_deepcopy_reflexive_inst(self):
412 def test_reconstruct_string(self):
414 def __reduce__(self):
422 def test_reconstruct_nostate(self):
424 def __reduce__(self):
433 def test_reconstruct_state(self):
435 def __reduce__(self):
437 def __cmp__(self, other):
448 def test_reconstruct_state_setstate(self):
450 def __reduce__(self):
452 def __setstate__(self, state):
454 def __cmp__(self, other):
465 def test_reconstruct_reflexive(self):
476 def test_reduce_4tuple(self):
478 def __reduce__(self):
480 def __cmp__(self, other):
494 def test_reduce_5tuple(self):
496 def __reduce__(self):
498 def __cmp__(self, other):
512 def test_copy_slots(self):
520 def test_deepcopy_slots(self):
529 def test_deepcopy_dict_subclass(self):
531 def __init__(self, d=None):
536 def __setitem__(self, key, item):
549 def test_copy_list_subclass(self):
560 def test_deepcopy_list_subclass(self):
571 def test_copy_tuple_subclass(self):
579 def test_deepcopy_tuple_subclass(self):
589 def test_getstate_exc(self):
591 def __getstate__(self):
595 def test_copy_function(self):
597 def foo(x, y): return x+y
602 def test_deepcopy_function(self):
604 def foo(x, y): return x+y
609 def _check_weakref(self, _copy):
620 def test_copy_weakref(self):
623 def test_deepcopy_weakref(self):
626 def _check_copy_weakdict(self, _dicttype):
646 def test_copy_weakkeydict(self):
649 def test_copy_weakvaluedict(self):
652 def test_deepcopy_weakkeydict(self):
654 def __init__(self, i):
671 def test_deepcopy_weakvaluedict(self):
673 def __init__(self, i):
694 def test_deepcopy_bound_method(self):
696 def m(self):
706 def global_foo(x, y): return x+y
708 def test_main():