'While only a single \'?\' is allowed in an URL, several other servers
allow several and pass all after the first through as part of the
query arguments.  Test that we emulate this behavior.'

def test_extraQuestionMark(self):

    httpRequest = 'GET    /foo?bar=?&baz=quux    HTTP/1.0\n\n'
    method = []
    path = []
    args = []
    testcase = self
    class MyRequest(http.Request, ):
        def process(self):
            method.append(self.method)
            path.append(self.path)
            args.extend([self.args['bar'], self.args['baz']])
            testcase.didRequest = True
            self.finish()
    self.runRequest(httpRequest, MyRequest)
    self.assertEqual(method, ['GET'])
    self.assertEqual(path, ['/foo'])
    self.assertEqual(args, [['?'], ['quux']])
