From ffda7c2597802b0a05041fb44cd8bb5151a5fa74 Mon Sep 17 00:00:00 2001 From: Sahina Bose Date: Fri, 21 Mar 2014 11:23:18 +0530 Subject: test: Fixing the test case failure Fixing the failure due to hardcoded var path Change-Id: I74b85fdcf85e407379a79fe002257dbbe1a8013f Signed-off-by: Sahina Bose Reviewed-on: https://cuckoo.blr.redhat.com:8443/58 --- tests/test_check_remote_host.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_check_remote_host.py b/tests/test_check_remote_host.py index f7965f3..daa945d 100644 --- a/tests/test_check_remote_host.py +++ b/tests/test_check_remote_host.py @@ -33,7 +33,7 @@ class TestCheckRemoteHost(TestCaseBase): self.assertTrue(mock_socket, "called") reference.recv.return_value = "0\n" plugins.check_remote_host.checkLiveStatus("dummy host", "dummy srvc") - reference.connect.assert_called_with("${localstatedir}/" + reference.connect.assert_called_with("/var/" "spool/nagios/cmd/live") reference.send.assert_called_with("GET services\nColumns: state\n" "Filter: description = dummy srvc\n" -- cgit