'If the request has a Content-Type of C{multipart/form-data}, and the
form data is parseable, the form arguments will be added to the
request\'s args.'

def test_multipartFormData(self):

    processed = []
    class MyRequest(http.Request, ):
        def process(self):
            processed.append(self)
            self.write('done')
            self.finish()
    req = 'POST    /    HTTP/1.0\nContent-Type:    multipart/form-data;    boundary=AaB03x\nContent-Length:    149\n\n--AaB03x\nContent-Type:    text/plain\nContent-Disposition:    form-data;    name="text"\nContent-Transfer-Encoding:    quoted-printable\n\nabasdfg\n--AaB03x--\n'
    channel = self.runRequest(req, MyRequest, success=False)
    self.assertEqual(channel.transport.value(), 'HTTP/1.0    200    OK\r\n\r\ndone')
    self.assertEqual(len(processed), 1)
    self.assertEqual(processed[0].args, {'text': ['abasdfg']})
