Skip to content

Commit

Permalink
Fix unit test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshrn committed Jun 16, 2018
1 parent 4d5ff0a commit 0316d58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit/operations/third_party/juniper/test_rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def test_commit_confirmed(self, mock_assert, mock_request, mock_session):
session = ncclient.transport.SSHSession(device_handler)
obj = Commit(session, device_handler, raise_mode=RaiseMode.ALL)
obj.request(confirmed=True, comment="message", timeout="50")
node = new_ele("commit")
node = new_ele("commit-configuration")
sub_ele(node, "confirmed")
sub_ele(node, "confirm-timeout").text = "50"
sub_ele(node, "log").text = "message"
Expand All @@ -221,7 +221,7 @@ def test_commit(self, mock_assert, mock_request, mock_session):
session = ncclient.transport.SSHSession(device_handler)
obj = Commit(session, device_handler, raise_mode=RaiseMode.ALL)
obj.request()
node = new_ele("commit")
node = new_ele("commit-configuration")
xml = ElementTree.tostring(node)
call = mock_request.call_args_list[0][0][0]
call = ElementTree.tostring(call)
Expand All @@ -236,7 +236,7 @@ def test_commit_at_time(self, mock_assert, mock_request, mock_session):
session = ncclient.transport.SSHSession(device_handler)
obj = Commit(session, device_handler, raise_mode=RaiseMode.ALL)
obj.request(at_time="1111-11-11 00:00:00", synchronize=True)
node = new_ele("commit")
node = new_ele("commit-configuration")
sub_ele(node, "at-time").text = "1111-11-11 00:00:00"
sub_ele(node, "synchronize")
xml = ElementTree.tostring(node)
Expand Down

0 comments on commit 0316d58

Please sign in to comment.