new test case for $(echo)

This commit is contained in:
Michel Oosterhof 2019-10-03 19:46:47 +03:00
parent 225e618341
commit 0ab11d1e71
1 changed files with 7 additions and 0 deletions

View File

@ -150,5 +150,12 @@ class ShellEchoCommandTests(unittest.TestCase):
self.proto.lineReceived(b'echo echo test | bash')
self.assertEquals(self.tr.value(), b'test\n' + PROMPT)
def test_echo_command_018(self):
"""
echo $(echo test)
"""
self.proto.lineReceived(b'echo $(echo test)')
self.assertEquals(self.tr.value(), b'test\n' + PROMPT)
def tearDown(self):
self.proto.connectionLost("tearDown From Unit Test")