'L{endpoints.clientFromString} will pass a reactor to plugins
implementing the L{IStreamClientEndpointStringParserWithReactor}
interface.'

def test_stringParserWithReactor(self):

    addFakePlugin(self)
    reactor = object()
    clientEndpoint = endpoints.clientFromString(reactor, 'crfake:alpha:beta:cee=dee:num=1')
    from twisted.plugins.fakeendpoint import fakeClientWithReactor
    self.assertEqual((clientEndpoint.parser, clientEndpoint.args, clientEndpoint.kwargs), (fakeClientWithReactor, (reactor, 'alpha', 'beta'), dict(cee='dee', num='1')))
