From 2beae27541be19c22e15a2c02e8fbee254bb8e6c Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Tue, 5 May 2015 11:16:29 +1200 Subject: [PATCH] websockets: fix actions on frames --- libpathod/language/websockets.py | 2 +- test/test_language_websocket.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libpathod/language/websockets.py b/libpathod/language/websockets.py index 4b8a81483..a66749880 100644 --- a/libpathod/language/websockets.py +++ b/libpathod/language/websockets.py @@ -152,7 +152,7 @@ class WebsocketFrame(message.Message): def resolve(self, settings, msg=None): return self.__class__( - [i.resolve(settings, msg) for i in self.tokens] + [i.resolve(settings, self) for i in self.tokens] ) def spec(self): diff --git a/test/test_language_websocket.py b/test/test_language_websocket.py index e313c5918..8abb55aa2 100644 --- a/test/test_language_websocket.py +++ b/test/test_language_websocket.py @@ -13,6 +13,7 @@ class TestWebsocketFrame: def test_values(self): specs = [ "wf", + "wf:dr", "wf:b'foo'", "wf:cbinary", "wf:c1",