From ae12ddf702a9c7ec55715f3c1f9141c23b1ee862 Mon Sep 17 00:00:00 2001 From: Marek Majkowski Date: Fri, 16 Mar 2012 15:51:21 +0000 Subject: [PATCH] Cosmetic --- sockjs-protocol-dev.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sockjs-protocol-dev.py b/sockjs-protocol-dev.py index 8644d2e..0d6d91c 100644 --- a/sockjs-protocol-dev.py +++ b/sockjs-protocol-dev.py @@ -468,10 +468,12 @@ def test_simpleSession(self): # close frame to the new connection. r1 = POST_async(trans_url + '/xhr', load=False) r2 = POST(trans_url + '/xhr') - r1.close() + self.assertEqual(r2.body, 'c[2010,"Another connection still open"]\n') self.assertEqual(r2.status, 200) + r1.close() + # The server may terminate the connection, passing error code and # message. def test_closeSession(self):