'When an unknown command is sent directly (not through public API), the
server answers with an B{ERROR} token, and the command fails with
L{NoSuchCommand}.'

def test_invalidCommand(self):

    d = self.proto._set('egg', 'foo', 'bar', 0, 0, '')
    self.assertEqual(self.transport.value(), 'egg    foo    0    0    3\r\nbar\r\n')
    self.assertFailure(d, NoSuchCommand)
    self.proto.dataReceived('ERROR\r\n')
    return d
