forked from p15670423/monkey
UT: Add comment
This commit is contained in:
parent
35d0cbc3b0
commit
0e2d82a7ad
|
@ -42,6 +42,7 @@ def test_get_agent_log__retrieval_error():
|
||||||
|
|
||||||
def test_get_agent_log__corrupt_data():
|
def test_get_agent_log__corrupt_data():
|
||||||
file_repository = MagicMock(spec=IFileRepository)
|
file_repository = MagicMock(spec=IFileRepository)
|
||||||
|
# Return invalid unicode
|
||||||
file_repository.open_file = MagicMock(return_value=io.BytesIO(b"\xff\xfe"))
|
file_repository.open_file = MagicMock(return_value=io.BytesIO(b"\xff\xfe"))
|
||||||
repository = FileAgentLogRepository(file_repository)
|
repository = FileAgentLogRepository(file_repository)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue