'L{http.Request.parseCookies} strips leading whitespace in the
cookie key.'

def test_parseCookiesStripLeftSpace(self):

    req = http.Request(DummyChannel(), False)
    req.requestHeaders.setRawHeaders('cookie', ['    foo=bar'])
    req.parseCookies()
    self.assertEqual(req.received_cookies, {'foo': 'bar'})
