mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-05 00:31:37 -07:00
Netconf bytes fixes (#41607)
* Solve some bytes issues on iosxr * Solve some bytes issues in junos * Do the correct thing with tostring based on lxml or not
This commit is contained in:
parent
c144adc9de
commit
9aa8c652ba
23 changed files with 54 additions and 113 deletions
|
@ -103,7 +103,7 @@ class TestJunosCommandModule(TestJunosModule):
|
|||
result = self.execute_module(format='xml')
|
||||
args, kwargs = self.exec_rpc.call_args
|
||||
reply = args[1]
|
||||
self.assertTrue(reply.find(b'<interface>em0</interface><media /></get-software-information>'))
|
||||
self.assertTrue(reply.find('<interface>em0</interface><media /></get-software-information>'))
|
||||
|
||||
def test_junos_rpc_attrs(self):
|
||||
set_module_args(dict(rpc='load-configuration', output='xml', attrs={'url': '/var/tmp/config.conf'}))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue