Skip to content

Commit

Permalink
#255 Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dhoomakethu committed Dec 26, 2017
1 parent 64cb66a commit d4dcdc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ def testPayloadDecoderReset(self):

def testPayloadDecoderRegisterFactory(self):
''' Test the payload decoder reset functionality '''
payload = [1,2,3,4]
payload = [1, 2, 3, 4]
decoder = BinaryPayloadDecoder.fromRegisters(payload, endian=Endian.Little)
encoded = b'\x01\x00\x02\x00\x03\x00\x04\x00'
encoded = b'\x00\x01\x00\x02\x00\x03\x00\x04'
self.assertEqual(encoded, decoder.decode_string(8))

decoder = BinaryPayloadDecoder.fromRegisters(payload, endian=Endian.Big)
Expand Down

0 comments on commit d4dcdc0

Please sign in to comment.