diff --git a/src/cowrie/test/test_echo.py b/src/cowrie/test/test_echo.py index 47f6be75..7582a7bd 100644 --- a/src/cowrie/test/test_echo.py +++ b/src/cowrie/test/test_echo.py @@ -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")