'If the value of the I{User-Agent} header contains a quote, the quote is
escaped.'

def test_userAgentQuote(self):

    self.site._logDateTime = ('[%02d/%3s/%4d:%02d:%02d:%02d    +0000]' % (25, 'Oct', 2004, 12, 31, 59))
    self.request.requestHeaders.addRawHeader('user-agent', 'Malicious    Web"    Evil')
    self.assertLogs('"1.2.3.4"    -    -    [25/Oct/2004:12:31:59    +0000]    "GET    /dummy    HTTP/1.0"    123    -    "-"    "Malicious    Web\\"    Evil"\n')
