From 05a95ce6cc7462dc296f630b62cf0f4c3062fcab Mon Sep 17 00:00:00 2001 From: jmoore Date: Mon, 9 Jan 2012 09:28:31 +0100 Subject: [PATCH] Passing test for #2513 (NPE in IShare) Issue was corrected in commit af63c91195aa3fc2c7a52fe5e90f362fcdfd0096 --- components/tools/OmeroPy/test/integration/ishare.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/components/tools/OmeroPy/test/integration/ishare.py b/components/tools/OmeroPy/test/integration/ishare.py index 9b10ec8ef3a..885451d5206 100644 --- a/components/tools/OmeroPy/test/integration/ishare.py +++ b/components/tools/OmeroPy/test/integration/ishare.py @@ -711,6 +711,15 @@ def test5851(self): adminService.getEventContext() # Refreshes self.assertExpiration(expiration, shareService.getShare(sid)) + def test2513(self): + """ + Test a few NPE scenarios in IShare + """ + shares = self.client.sf.getShareService() + bad_screen = ( shares.createShare, "my description", None, + [omero.model.ScreenI()], [], [], True) + + self.assertRaises(omero.ValidationException, *bad_screen) # Helpers