File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -41,11 +41,10 @@ def test_default_connect_command(self):
41
41
try :
42
42
import orjson
43
43
44
- # If using orjson, expected string is without spaces
45
- expected = expected .replace (" " , "" )
44
+ # If using orjson, expected string is without spaces (except for first space after CONNECT)
45
+ expected = expected .replace (" " , "" ). replace ( "CONNECT" , "CONNECT " )
46
46
except ImportError :
47
47
pass
48
-
49
48
self .assertEqual (expected .encode (), got )
50
49
51
50
def test_default_connect_command_with_name (self ):
@@ -61,8 +60,8 @@ def test_default_connect_command_with_name(self):
61
60
try :
62
61
import orjson
63
62
64
- # If using orjson, expected string is without spaces
65
- expected = expected .replace (" " , "" )
63
+ # If using orjson, expected string is without spaces (except for first space after CONNECT)
64
+ expected = expected .replace (" " , "" ). replace ( "CONNECT" , "CONNECT " )
66
65
except ImportError :
67
66
pass
68
67
You can’t perform that action at this time.
0 commit comments