(self, object, methodname, *args)
| 36 | self.assertEqual(str(cm.exception), expected_msg) |
| 37 | |
| 38 | def checkcall(self, object, methodname, *args): |
| 39 | object = self.fixtype(object) |
| 40 | # we don't fix the arguments, because UserString can't cope with it |
| 41 | getattr(object, methodname)(*args) |
| 42 | |
| 43 | def test_rmod(self): |
| 44 | class ustr2(UserString): |