def test_bang(self):
        self.database.addUser(
            getpass.getuser(), 'secret', os.getuid(), 1234, 'foo', 'bar',
            '/bin/sh')

        d = self.client._dispatchCommand("!echo hello")
        d.addCallback(self.assertEqual, "hello\n")
        return d
The I{exec} command is run for lines which start with C{"!"}.
dataset/ETHPy150Open twisted/twisted/twisted/conch/test/test_cftp.py/StdioClientTests.test_bang