'If no discovered endpoint matches the values from the
assertion, then we end up raising a ProtocolError'

def test_noMatches(self):

    self.discovery_result = (None, ['unused'])
    def raiseProtocolError(unused1, unused2):
        raise ProtocolError('unit    test')
    self.consumer._verifyDiscoverySingle = raiseProtocolError
    self.failUnlessDiscoveryFailure()
