'Test that --help-auth-type will display a warning if you get
help for an authType that does not supply at least one of the
credential interfaces our application can use.'

def test_helpAuthTypeLimitsOutput(self):

    options = OptionsForUsernamePassword()
    invalidFactory = None
    for factory in strcred.findCheckerFactories():
        if (not options.supportsCheckerFactory(factory)):
            invalidFactory = factory
            break
    self.assertNotIdentical(invalidFactory, None)
    newStdout = StringIO()
    options.authOutput = newStdout
    self.assertRaises(SystemExit, options.parseOptions, ['--help-auth-type', 'anonymous'])
    self.assertIn(strcred.notSupportedWarning, newStdout.getvalue())
