Skip to content
This repository was archived by the owner on Jan 13, 2023. It is now read-only.

Commit f057862

Browse files
committed
Change test to be compatible with Python 2.7
1 parent ab285d9 commit f057862

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/commands/extended/replay_bundle_test.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -596,16 +596,15 @@ def test_happy_path(self):
596596
'trytes': bundle.as_tryte_strings(),
597597
}
598598

599-
def mock_send_trytes(self,request):
599+
def mock_send_trytes(_,request):
600600
"""
601601
Ensures that the correct trytes are sent to the ``sendTrytes`` command
602602
to replay the bundle.
603603
604604
References:
605605
- https://github.com/iotaledger/iota.lib.py/issues/74
606606
"""
607-
from unittest import TestCase
608-
TestCase().assertEqual(request['trytes'], send_trytes_response['trytes'])
607+
self.assertEqual(request['trytes'], send_trytes_response['trytes'])
609608
return send_trytes_response
610609

611610
with mock.patch(

0 commit comments

Comments
 (0)