Skip to content

Commit

Permalink
Fixing unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertoRoos committed Sep 13, 2024
1 parent 7b5b368 commit f33dd20
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/test_connection_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,9 @@ def test_read_string(self):
# Assert that the server received the correct command
self.assert_command_id(requests[0], constants.ADSCOMMAND_READ)

# The string buffer is 1024 bytes long, this will be filled with \x0F
# and null terminated with \x00 by our test server. The \x00 will get
# chopped off during parsing to python string type
expected_result = "\x0F" * 1023
self.assertEqual(result, expected_result)
# We are reading only a single character, which the test-server defaults at 0
expected_result = "\x00"
self.assertEqual(expected_result, result)

def test_write_uint(self):
value = 100
Expand Down

0 comments on commit f33dd20

Please sign in to comment.