def METHOD_NAME(self, ins):
    for attr in ("args", "__str__", "__repr__"):
        self.assertTrue(hasattr(ins, attr),
                "%s missing %s attribute" %
                    (ins.__class__.__name__, attr))