From a14b80bcb7f416626ef8462badf08a2d89be4e05 Mon Sep 17 00:00:00 2001
From: Michael Hanselmann <hansmi@google.com>
Date: Fri, 9 Sep 2011 12:55:28 +0200
Subject: [PATCH] rlib2: Improve test for _ParseInstanceReinstallRequest
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: RenΓ© Nussbaumer <rn@google.com>
---
 test/ganeti.rapi.rlib2_unittest.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/test/ganeti.rapi.rlib2_unittest.py b/test/ganeti.rapi.rlib2_unittest.py
index 2807a3b9d..fb168d5af 100755
--- a/test/ganeti.rapi.rlib2_unittest.py
+++ b/test/ganeti.rapi.rlib2_unittest.py
@@ -1320,6 +1320,9 @@ class TestParseInstanceReinstallRequest(testutils.GanetiTestCase):
     self.assertEqual(ops[1].os_type, "linux1")
     self.assertFalse(ops[1].osparams)
 
+  def testErrors(self):
+    self.assertRaises(http.HttpBadRequest, self.Parse, "foo", "not a dictionary")
+
 
 class TestGroupRename(unittest.TestCase):
   def test(self):
-- 
GitLab