Skip to content

Commit

Permalink
test: add test for UserGetListInSystemRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelm committed Sep 17, 2022
1 parent eeff3e8 commit 7183a4f
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions tests/test_basic_command_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,4 +501,39 @@ def test_nested_elements2():
)


def test_user_get_list_in_system():
cmd = api.get_command_object(
"UserGetListInSystemRequest",
response_size_limit=10,
search_criteria_dn=[
api.get_type_object(
"SearchCriteriaDn",
mode="Contains",
value="12345678",
is_case_insensitive=True,
),
],
)
assert cmd is not None
assert "UserGetListInSystemRequest" in str(type(cmd))

check_command_xml(
(
b'<?xml version="1.0" encoding="ISO-8859-1"?>'
b'<BroadsoftDocument protocol="OCI" xmlns="C" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">'
b'<sessionId xmlns="">00000000-1111-2222-3333-444444444444</sessionId>'
b'<command xsi:type="UserGetListInSystemRequest" xmlns="">'
b"<responseSizeLimit>10</responseSizeLimit>"
b"<searchCriteriaDn>"
b"<mode>Contains</mode>"
b"<value>12345678</value>"
b"<isCaseInsensitive>true</isCaseInsensitive>"
b"</searchCriteriaDn>"
b"</command>"
b"</BroadsoftDocument>"
),
cmd,
)


# end

0 comments on commit 7183a4f

Please sign in to comment.