'L{SSHUserAuthServer} sets up
C{SSHUserAuthServer.supportedAuthentications} by checking the portal\'s
credentials interfaces and mapping them to SSH authentication method
strings.  If the Portal advertises an interface that
L{SSHUserAuthServer} can\'t map, it should be ignored.  This is a white
box test.'

def test_ignoreUnknownCredInterfaces(self):

    server = userauth.SSHUserAuthServer()
    server.transport = FakeTransport(self.portal)
    self.portal.registerChecker(AnonymousChecker())
    server.serviceStarted()
    server.serviceStopped()
    server.supportedAuthentications.sort()
    self.assertEqual(server.supportedAuthentications, ['password', 'publickey'])
