'Test that non-integers and out-of-bound integers produce appropriate
error responses.'

def testLISTWithBadArgument(self):

    p = self.pop3Server
    s = self.pop3Transport
    p.lineReceived('LIST    a')
    self.assertEqual(s.getvalue(), "-ERR    Invalid    message-number:    'a'\r\n")
    s.truncate(0)
    p.lineReceived('LIST    0')
    self.assertEqual(s.getvalue(), '-ERR    Invalid    message-number:    0\r\n')
    s.truncate(0)
    p.lineReceived('LIST    2')
    self.assertEqual(s.getvalue(), '-ERR    Invalid    message-number:    2\r\n')
    s.truncate(0)
