def test_shadowGetByNameWithoutSpwd(self):
        self.patch(checkers, 'spwd', None)

        self.assertIs(checkers._shadowGetByName('bob'), None)
        self.assertEqual(self.mockos.seteuidCalls, [])
        self.assertEqual(self.mockos.setegidCalls, [])
L{_shadowGetByName} returns C{None} if C{spwd} is not present.
dataset/ETHPy150Open twisted/twisted/twisted/conch/test/test_checkers.py/HelperTests.test_shadowGetByNameWithoutSpwd