@@ -34,7 +34,7 @@ def _create_valid_message_json(handle):
3434 tab = ' '
3535 nlt = new_line + tab
3636 nldt = nlt + tab
37- if handle != '' :
37+ if handle != '' :
3838 handle = '"handle": "' + handle + '", ' + nldt
3939 message = '{' + nlt + '"message": {' + nldt + \
4040 '"public_key": "746573745f7075626b6579", ' + nldt + handle + \
@@ -52,8 +52,12 @@ def test_MarketListeners_notify_without_handle_success(self):
5252 l = MessageListenerImpl (self .ws , self .db )
5353 l .notify (p , signature )
5454 self .db .messages .save_message .assert_called_with ('746573745f67756964' ,
55- u'' , 'test_pubkey' , u'test_subject' , 'ORDER' ,
56- u'test_message' , 10 , 'test_avatar_hash' , signature , False )
55+ u'' , 'test_pubkey' ,
56+ u'test_subject' ,
57+ 'ORDER' ,
58+ u'test_message' , 10 ,
59+ 'test_avatar_hash' ,
60+ signature , False )
5761 self .ws .push .assert_called_with (self ._create_valid_message_json ('' ))
5862
5963 def test_MarketListeners_notify_with_handle_success (self ):
@@ -62,6 +66,11 @@ def test_MarketListeners_notify_with_handle_success(self):
6266 l = MessageListenerImpl (self .ws , self .db )
6367 l .notify (p , signature )
6468 self .db .messages .save_message .assert_called_with ('746573745f67756964' ,
65- u'test_handle' , 'test_pubkey' , u'test_subject' , 'ORDER' ,
66- u'test_message' , 10 , 'test_avatar_hash' , signature , False )
69+ u'test_handle' ,
70+ 'test_pubkey' ,
71+ u'test_subject' ,
72+ 'ORDER' ,
73+ u'test_message' , 10 ,
74+ 'test_avatar_hash' ,
75+ signature , False )
6776 self .ws .push .assert_called_with (self ._create_valid_message_json ('test_handle' ))
0 commit comments