'If the wrapped factory\'s C{buildProtocol} returns L{None} then
L{endpoints._WrappingFactory.buildProtocol} returns L{None}.'

def test_buildProtocolReturnsNone(self):

    wrappingFactory = endpoints._WrappingFactory(NoneFactory())
    wrappingFactory._onConnection.addErrback((lambda reason: None))
    self.assertIsNone(wrappingFactory.buildProtocol(None))
