'Whenever a valid certificate containing a valid hostname is received,
connection proceeds normally.'

def test_validHostname(self):

    (cProto, sProto, pump) = self.serviceIdentitySetup(u'valid.example.com', u'valid.example.com')
    self.assertEqual(cProto.wrappedProtocol.data, 'greetings!')
    cErr = cProto.wrappedProtocol.lostReason
    sErr = sProto.wrappedProtocol.lostReason
    self.assertIsNone(cErr)
    self.assertIsNone(sErr)
