Skip to content

Commit

Permalink
Passing test for ome#2513 (NPE in IShare)
Browse files Browse the repository at this point in the history
Issue was corrected in commit af63c91
  • Loading branch information
joshmoore committed Jan 11, 2012
1 parent 1fb3a0b commit 05a95ce
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions components/tools/OmeroPy/test/integration/ishare.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 05a95ce

Please sign in to comment.