def test_pwdGetByName(self):
        userdb = UserDatabase()
        userdb.addUser(
            'alice', 'secrit', 1, 2, 'first last', '/foo', '/bin/sh')
        self.patch(checkers, 'pwd', userdb)
        self.assertEqual(
            checkers._pwdGetByName('alice'), userdb.getpwnam('alice'))
Set up variables for parser.
dataset/ETHPy150Open twisted/twisted/twisted/conch/test/test_checkers.py/HelperTests.test_pwdGetByName--crossover with--dataset/ETHPy150Open letsencrypt/letsencrypt/certbot-apache/certbot_apache/tests/complex_parsing_test.py/ComplexParserTest.setup_variables