def METHOD_NAME(self, exc, obj, methodname, *args):
    obj = self.fixtype(obj)
    # we don't fix the arguments, because UserString can't cope with it
    with self.assertRaises(exc) as cm:
        getattr(obj, methodname)(*args)
    self.assertNotEqual(cm.exception.args[0], '')