Commit 0f03d8d4 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Clean up incorrect merge 7dcf333d



The unittests weren't corrected for the master branch.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent 7dcf333d
......@@ -1472,12 +1472,18 @@ class TestInstanceReplaceDisks(unittest.TestCase):
self.assertRaises(IndexError, cl.GetNextSubmittedJob)
def testNoDisks(self):
self.assertRaises(http.HttpBadRequest, self.Parse, "inst20661", {})
clfactory = _FakeClientFactory(_FakeClient)
handler = _CreateHandler(rlib2.R_2_instances_name_replace_disks,
["inst20661"], {}, {}, clfactory)
self.assertRaises(http.HttpBadRequest, handler.POST)
for disks in [None, "", {}]:
self.assertRaises(http.HttpBadRequest, self.Parse, "inst20661", {
handler = _CreateHandler(rlib2.R_2_instances_name_replace_disks,
["inst20661"], {}, {
"disks": disks,
})
}, clfactory)
self.assertRaises(http.HttpBadRequest, handler.POST)
def testWrong(self):
clfactory = _FakeClientFactory(_FakeClient)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment