'When passed a C{tls:} strports description without extra arguments,
L{clientFromString} returns a client endpoint whose context factory is
initialized with default values.'

def test_tlsWithDefaults(self):

    reactor = object()
    endpoint = endpoints.clientFromString(reactor, 'tls:example.com:443')
    creator = connectionCreatorFromEndpoint(reactor, endpoint)
    self.assertEqual(creator._hostname, u'example.com')
    self.assertEqual(endpoint._wrappedEndpoint._hostBytes, 'example.com')
