def test_failOnSpecial(self):
        pwd = UserDatabase()
        pwd.addUser('alice', '', 1, 2, '', 'foo', 'bar')
        pwd.addUser('bob', 'x', 1, 2, '', 'foo', 'bar')
        pwd.addUser('carol', '*', 1, 2, '', 'foo', 'bar')
        self.patch(checkers, 'pwd', pwd)

        checker = checkers.UNIXPasswordDatabase([checkers._pwdGetByName])
        cred = UsernamePassword(b'alice', b'')
        self.assertUnauthorizedLogin(checker.requestAvatarId(cred))

        cred = UsernamePassword(b'bob', b'x')
        self.assertUnauthorizedLogin(checker.requestAvatarId(cred))

        cred = UsernamePassword(b'carol', b'*')
        self.assertUnauthorizedLogin(checker.requestAvatarId(cred))
Type: Flow or Auxiliary
dataset/ETHPy150Open twisted/twisted/twisted/conch/test/test_checkers.py/UNIXPasswordDatabaseTests.test_failOnSpecial--crossover with--dataset/ETHPy150Open JamesPHoughton/pysd/tests/test-models-master/tests/rounding/test_rounding.py/saveper