Lines Matching refs:assertCallStack
136 def assertCallStack(self, expected_calls): member in ClassTests
145 self.assertCallStack([("__init__", (foo,))])
153 self.assertCallStack([("__coerce__", (testme, 1)), ("__add__", (testme, 1))])
157 self.assertCallStack([("__coerce__", (testme, 1)), ("__radd__", (testme, 1))])
161 self.assertCallStack([("__coerce__", (testme, 1)), ("__sub__", (testme, 1))])
165 self.assertCallStack([("__coerce__", (testme, 1)), ("__rsub__", (testme, 1))])
169 self.assertCallStack([("__coerce__", (testme, 1)), ("__mul__", (testme, 1))])
173 self.assertCallStack([("__coerce__", (testme, 1)), ("__rmul__", (testme, 1))])
178 self.assertCallStack([("__coerce__", (testme, 1)), ("__div__", (testme, 1))])
183 self.assertCallStack([("__coerce__", (testme, 1)), ("__rdiv__", (testme, 1))])
187 self.assertCallStack([("__coerce__", (testme, 1)), ("__mod__", (testme, 1))])
191 self.assertCallStack([("__coerce__", (testme, 1)), ("__rmod__", (testme, 1))])
196 self.assertCallStack([("__coerce__", (testme, 1)), ("__divmod__", (testme, 1))])
200 self.assertCallStack([("__coerce__", (testme, 1)), ("__rdivmod__", (testme, 1))])
204 self.assertCallStack([("__coerce__", (testme, 1)), ("__pow__", (testme, 1))])
208 self.assertCallStack([("__coerce__", (testme, 1)), ("__rpow__", (testme, 1))])
212 self.assertCallStack([("__coerce__", (testme, 1)), ("__rshift__", (testme, 1))])
216 self.assertCallStack([("__coerce__", (testme, 1)), ("__rrshift__", (testme, 1))])
220 self.assertCallStack([("__coerce__", (testme, 1)), ("__lshift__", (testme, 1))])
224 self.assertCallStack([("__coerce__", (testme, 1)), ("__rlshift__", (testme, 1))])
228 self.assertCallStack([("__coerce__", (testme, 1)), ("__and__", (testme, 1))])
232 self.assertCallStack([("__coerce__", (testme, 1)), ("__rand__", (testme, 1))])
236 self.assertCallStack([("__coerce__", (testme, 1)), ("__or__", (testme, 1))])
240 self.assertCallStack([("__coerce__", (testme, 1)), ("__ror__", (testme, 1))])
244 self.assertCallStack([("__coerce__", (testme, 1)), ("__xor__", (testme, 1))])
248 self.assertCallStack([("__coerce__", (testme, 1)), ("__rxor__", (testme, 1))])
265 self.assertCallStack([('__contains__', (testme, 1))])
269 self.assertCallStack([('__getitem__', (testme, 1))])
273 self.assertCallStack([('__setitem__', (testme, 1, 1))])
277 self.assertCallStack([('__delitem__', (testme, 1))])
281 self.assertCallStack([('__getslice__', (testme, 0, 42))])
285 self.assertCallStack([('__setslice__', (testme, 0, 42, "The Answer"))])
289 self.assertCallStack([('__delslice__', (testme, 0, 42))])
293 self.assertCallStack([('__getitem__', (testme, slice(2, 1024, 10)))])
297 self.assertCallStack([('__setitem__', (testme, slice(2, 1024, 10),
301 self.assertCallStack([('__delitem__', (testme, slice(2, 1024, 10)))])
305 self.assertCallStack([('__getitem__', (testme, (slice(None, 42, None),
311 self.assertCallStack([('__setitem__', (testme, (slice(None, 42, None),
317 self.assertCallStack([('__delitem__', (testme, (slice(None, 42, None),
337 self.assertCallStack([('__getitem__', (testme, slice(0, 42, None)))])
341 self.assertCallStack([('__setitem__', (testme, slice(0, 42, None),
345 self.assertCallStack([('__delitem__', (testme, slice(0, 42, None)))])
371 self.assertCallStack([('__neg__', (testme,))])
374 self.assertCallStack([('__pos__', (testme,))])
377 self.assertCallStack([('__abs__', (testme,))])
380 self.assertCallStack([('__int__', (testme,))])
383 self.assertCallStack([('__long__', (testme,))])
386 self.assertCallStack([('__float__', (testme,))])
389 self.assertCallStack([('__oct__', (testme,))])
392 self.assertCallStack([('__hex__', (testme,))])
400 self.assertCallStack([('__hash__', (testme,))])
404 self.assertCallStack([('__repr__', (testme,))])
408 self.assertCallStack([('__str__', (testme,))])
412 self.assertCallStack([("__coerce__", (testme, 1)), ('__cmp__', (testme, 1))])
416 self.assertCallStack([("__coerce__", (testme, 1)), ('__cmp__', (testme, 1))])
420 self.assertCallStack([("__coerce__", (testme, 1)), ('__cmp__', (testme, 1))])
424 self.assertCallStack([("__coerce__", (testme, 1)), ('__cmp__', (testme, 1))])
428 self.assertCallStack([("__coerce__", (testme, 1)), ('__cmp__', (testme, 1))])
432 self.assertCallStack([("__coerce__", (testme, 1)), ('__cmp__', (1, testme))])
436 self.assertCallStack([("__coerce__", (testme, 1)), ('__cmp__', (1, testme))])
440 self.assertCallStack([("__coerce__", (testme, 1)), ('__cmp__', (1, testme))])
444 self.assertCallStack([("__coerce__", (testme, 1)), ('__cmp__', (1, testme))])
448 self.assertCallStack([("__coerce__", (testme, 1)), ('__cmp__', (1, testme))])
470 self.assertCallStack([('__getattr__', (testme, "spam"))])
474 self.assertCallStack([('__setattr__', (testme, "eggs",
479 self.assertCallStack([('__delattr__', (testme, "cardinal"))])
525 self.assertCallStack([('__int__', (mixIntAndLong,))])
531 self.assertCallStack([('__long__', (mixIntAndLong,))])