'Process set/get commands and compare both return values
with outValue if it was given otherwise with inValue'

def setGetTest(self, cmd, inValue, outValue=(None,), outCode=0, jail=None, repr_=False):

    setCmd = ['set', cmd, inValue]
    getCmd = ['get', cmd]
    if (jail is not None):
        setCmd.insert(1, jail)
        getCmd.insert(1, jail)
    if (outValue == (None,)):
        outValue = inValue
    def v(x):
        'Prepare    value    for    comparison'
        return (repr(x) if repr_ else x)
    self.assertEqual(v(self.transm.proceed(setCmd)), v((outCode, outValue)))
    if (not outCode):
        self.assertEqual(v(self.transm.proceed(getCmd)), v((0, outValue)))
