'L{strports.service} returns a L{StreamServerEndpointService}
constructed with an endpoint produced from
L{endpoint.serverFromString}, using the same syntax.'

def test_service(self):

    reactor = object()
    aFactory = Factory()
    aGoodPort = 1337
    svc = strports.service(('tcp:' + str(aGoodPort)), aFactory, reactor=reactor)
    self.assertIsInstance(svc, internet.StreamServerEndpointService)
    self.assertTrue(svc._raiseSynchronously)
    self.assertIsInstance(svc.endpoint, TCP4ServerEndpoint)
    self.assertEqual(svc.endpoint._port, aGoodPort)
    self.assertIs(svc.factory, aFactory)
    self.assertIs(svc.endpoint._reactor, reactor)
