def test_execWithoutShell(self):
        """
        If the local user has no shell, the I{exec} command runs its arguments
        using I{/bin/sh}.
        """
        self.database.addUser(
            getpass.getuser(), 'secret', os.getuid(), 1234, 'foo', 'bar', '')

        d = self.client._dispatchCommand("exec echo hello")
        d.addCallback(self.assertEqual, b"hello\n")
        return d

        If the local user has no shell, the I{exec} command runs its arguments
        using I{/bin/sh}.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_cftp.py