mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00: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:
@@ -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'}))
|
||||
|
||||
Reference in New Issue
Block a user