'If the wrapped factory\'s C{buildProtocol} returns L{None} the
C{onConnection} errback fires with L{error.NoProtocol}.'

def test_buildNoneProtocol(self):

    wrappingFactory = endpoints._WrappingFactory(NoneFactory())
    wrappingFactory.buildProtocol(None)
    self.failureResultOf(wrappingFactory._onConnection, error.NoProtocol)
