'Issue either an I{EXAMINE} or I{SELECT} command (depending on
C{self.method}), assert that the correct bytes are written to the
transport, and return the L{Deferred} returned by whichever method was
called.'

def _examineOrSelect(self):

    d = getattr(self.client, self.method)('foobox')
    self.assertEqual(self.transport.value(), (('0001    ' + self.command) + '    foobox\r\n'))
    return d
