Lines Matching refs:assertCallStack
141 def assertCallStack(self, expected_calls): member in ClassTests
150 self.assertCallStack([("__init__", (foo,))])
158 self.assertCallStack([("__add__", (testme, 1))])
162 self.assertCallStack([("__radd__", (testme, 1))])
166 self.assertCallStack([("__sub__", (testme, 1))])
170 self.assertCallStack([("__rsub__", (testme, 1))])
174 self.assertCallStack([("__mul__", (testme, 1))])
178 self.assertCallStack([("__rmul__", (testme, 1))])
182 self.assertCallStack([("__matmul__", (testme, 1))])
186 self.assertCallStack([("__rmatmul__", (testme, 1))])
190 self.assertCallStack([("__truediv__", (testme, 1))])
195 self.assertCallStack([("__rtruediv__", (testme, 1))])
199 self.assertCallStack([("__floordiv__", (testme, 1))])
204 self.assertCallStack([("__rfloordiv__", (testme, 1))])
208 self.assertCallStack([("__mod__", (testme, 1))])
212 self.assertCallStack([("__rmod__", (testme, 1))])
217 self.assertCallStack([("__divmod__", (testme, 1))])
221 self.assertCallStack([("__rdivmod__", (testme, 1))])
225 self.assertCallStack([("__pow__", (testme, 1))])
229 self.assertCallStack([("__rpow__", (testme, 1))])
233 self.assertCallStack([("__rshift__", (testme, 1))])
237 self.assertCallStack([("__rrshift__", (testme, 1))])
241 self.assertCallStack([("__lshift__", (testme, 1))])
245 self.assertCallStack([("__rlshift__", (testme, 1))])
249 self.assertCallStack([("__and__", (testme, 1))])
253 self.assertCallStack([("__rand__", (testme, 1))])
257 self.assertCallStack([("__or__", (testme, 1))])
261 self.assertCallStack([("__ror__", (testme, 1))])
265 self.assertCallStack([("__xor__", (testme, 1))])
269 self.assertCallStack([("__rxor__", (testme, 1))])
286 self.assertCallStack([('__contains__', (testme, 1))])
290 self.assertCallStack([('__getitem__', (testme, 1))])
294 self.assertCallStack([('__setitem__', (testme, 1, 1))])
298 self.assertCallStack([('__delitem__', (testme, 1))])
302 self.assertCallStack([('__getitem__', (testme, slice(None, 42)))])
306 self.assertCallStack([('__setitem__', (testme, slice(None, 42),
311 self.assertCallStack([('__delitem__', (testme, slice(None, 42)))])
315 self.assertCallStack([('__getitem__', (testme, slice(2, 1024, 10)))])
319 self.assertCallStack([('__setitem__', (testme, slice(2, 1024, 10),
323 self.assertCallStack([('__delitem__', (testme, slice(2, 1024, 10)))])
327 self.assertCallStack([('__getitem__', (testme, (slice(None, 42, None),
333 self.assertCallStack([('__setitem__', (testme, (slice(None, 42, None),
339 self.assertCallStack([('__delitem__', (testme, (slice(None, 42, None),
349 self.assertCallStack([('__neg__', (testme,))])
352 self.assertCallStack([('__pos__', (testme,))])
355 self.assertCallStack([('__abs__', (testme,))])
358 self.assertCallStack([('__int__', (testme,))])
361 self.assertCallStack([('__float__', (testme,))])
364 self.assertCallStack([('__index__', (testme,))])
367 self.assertCallStack([('__index__', (testme,))])
375 self.assertCallStack([('__hash__', (testme,))])
379 self.assertCallStack([('__repr__', (testme,))])
383 self.assertCallStack([('__str__', (testme,))])
387 self.assertCallStack([('__eq__', (testme, 1))])
391 self.assertCallStack([('__lt__', (testme, 1))])
395 self.assertCallStack([('__gt__', (testme, 1))])
399 self.assertCallStack([('__ne__', (testme, 1))])
403 self.assertCallStack([('__eq__', (1, testme))])
407 self.assertCallStack([('__gt__', (1, testme))])
411 self.assertCallStack([('__lt__', (1, testme))])
415 self.assertCallStack([('__ne__', (1, testme))])
437 self.assertCallStack([('__getattr__', (testme, "spam"))])
441 self.assertCallStack([('__setattr__', (testme, "eggs",
446 self.assertCallStack([('__delattr__', (testme, "cardinal"))])