'L{_shadowGetByName} returns L{None} if C{spwd} is not present.'

def test_shadowGetByNameWithoutSpwd(self):

    self.patch(checkers, 'spwd', None)
    self.assertIsNone(checkers._shadowGetByName('bob'))
    self.assertEqual(self.mockos.seteuidCalls, [])
    self.assertEqual(self.mockos.setegidCalls, [])
