'L{Headers._canonicalNameCaps} returns the canonical capitalization for
the given header.'

def test_canonicalNameCaps(self):

    h = Headers()
    self.assertEqual(h._canonicalNameCaps('test'), 'Test')
    self.assertEqual(h._canonicalNameCaps('test-stuff'), 'Test-Stuff')
    self.assertEqual(h._canonicalNameCaps('content-md5'), 'Content-MD5')
    self.assertEqual(h._canonicalNameCaps('dnt'), 'DNT')
    self.assertEqual(h._canonicalNameCaps('etag'), 'ETag')
    self.assertEqual(h._canonicalNameCaps('p3p'), 'P3P')
    self.assertEqual(h._canonicalNameCaps('te'), 'TE')
    self.assertEqual(h._canonicalNameCaps('www-authenticate'), 'WWW-Authenticate')
    self.assertEqual(h._canonicalNameCaps('x-xss-protection'), 'X-XSS-Protection')
