def test_unknownShell(self):
        """
        Using an unknown shellType should raise NotImplementedError
        """
        action = _shellcomp.SubcommandAction()

        self.assertRaises(NotImplementedError, action._shellCode,
                          None, "bad_shell_type")

        Using an unknown shellType should raise NotImplementedError
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/test_shellcomp.py