Skip to content

Commit

Permalink
Tests: Add calloc test.
Browse files Browse the repository at this point in the history
  • Loading branch information
matan1008 committed Mar 14, 2022
1 parent 79c26cf commit bb9646e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/rpcclient/tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,11 @@ def test_peek_invalid_address(client):
"""
with pytest.raises(ArgumentError):
client.peek(0, 0x10)


def test_calloc(client):
"""
:param rpcclient.client.Client client:
"""
with client.safe_calloc(0x100) as zeros:
assert client.peek(zeros, 0x100) == b'\x00' * 0x100

0 comments on commit bb9646e

Please sign in to comment.