def METHOD_NAME(self, methodname, table):
    for args, order, rval in table:
        f = self._makeOne()
        method = getattr(f, methodname)
        if rval == 'ValueError':
            self.assertRaises(ValueError, method, *args)
        else:
            self.assertEqual(method(*args), rval)
        self.assertEqual(f.objectIds(), order)