def test_noSuchName(self):
        """
        I{getpwnam} raises L{KeyError} when passed a username which does not
        exist in the user database.
        """
        self.assertRaises(
            KeyError, self.database.getpwnam,
            'no' 'such' 'user' 'exists' 'the' 'name' 'is' 'too' 'long' 'and' 'has'
            '\1' 'in' 'it' 'too')

        I{getpwnam} raises L{KeyError} when passed a username which does not
        exist in the user database.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/test_fakepwd.py