Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit cf0c0c4

Browse files
author
Tom Galloway
committed
Pylint fixes.
1 parent c74fd77 commit cf0c0c4

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

market/tests/test_listeners.py

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)