From 59e67682729cf31620baa94b099ac0d7adee7cc7 Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Fri, 27 Apr 2012 11:33:12 +0200
Subject: [PATCH] Fix rapi.testutils unittest
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Since we use a testutils.InputTestClient(), then the actual error
expected is VerificationError, and not GanetiApiError (which is used
at real run-time).

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: RenΓ© Nussbaumer <rn@google.com>
---
 test/ganeti.rapi.testutils_unittest.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/ganeti.rapi.testutils_unittest.py b/test/ganeti.rapi.testutils_unittest.py
index d26bd19e3..8d68b031c 100755
--- a/test/ganeti.rapi.testutils_unittest.py
+++ b/test/ganeti.rapi.testutils_unittest.py
@@ -129,7 +129,7 @@ class TestInputTestClient(unittest.TestCase):
     result = self.cl.PrepareExport("inst1.example.com",
                                    constants.EXPORT_MODE_LOCAL)
     self.assertTrue(result is NotImplemented)
-    self.assertRaises(rapi.client.GanetiApiError, self.cl.PrepareExport,
+    self.assertRaises(rapi.testutils.VerificationError, self.cl.PrepareExport,
                       "inst1.example.com", "###invalid###")
 
   def testGetJobs(self):
-- 
GitLab