'Tests that the --auth option registers a checker.'

def test_auth(self):

    options = Options()
    options.parseOptions(['--auth', 'memory:admin:admin:bob:password'])
    self.assertEqual(len(options['credCheckers']), 1)
    checker = options['credCheckers'][0]
    interfaces = checker.credentialInterfaces
    registered_checkers = options.service.smtpPortal.checkers
    for iface in interfaces:
        self.assertEqual(checker, registered_checkers[iface])
