Ejemplo n.º 1
0
 def testUnloadCheckPtr(self):
     img = ImageI()
     assert img.isLoaded()
     assert img.getDetails()  # details are auto instantiated
     assert not img.getName()  # no other single-valued field is
     img.unload()
     assert not img.isLoaded()
     pytest.raises(omero.UnloadedEntityException, img.getDetails)
Ejemplo n.º 2
0
 def testCreateAfterBlitzPort(self):
     ipojo = self.client.sf.getContainerService()
     i = ImageI()
     i.setName(rstring("name"))
     i.setAcquisitionDate(rtime(0))
     i = ipojo.createDataObject(i,None)
     o = i.getDetails().owner
     self.assertEquals( -1, o.sizeOfGroupExperimenterMap() )
Ejemplo n.º 3
0
 def testUnloadCheckPtr(self):
     img = ImageI()
     self.assert_(img.isLoaded())
     self.assert_(img.getDetails())  # details are auto instantiated
     self.assert_(not img.getName())  # no other single-valued field is
     img.unload()
     self.assert_(not img.isLoaded())
     self.assertRaises(omero.UnloadedEntityException, img.getDetails)
Ejemplo n.º 4
0
 def testCreateAfterBlitzPort(self):
     ipojo = self.client.sf.getContainerService()
     i = ImageI()
     i.setName(rstring("name"))
     i.setAcquisitionDate(rtime(0))
     i = ipojo.createDataObject(i, None)
     o = i.getDetails().owner
     self.assertEquals(-1, o.sizeOfGroupExperimenterMap())
Ejemplo n.º 5
0
 def testUnloadField(self):
     img = ImageI()
     assert img.getDetails()
     img.unloadDetails()
     assert not img.getDetails()
Ejemplo n.º 6
0
 def testUnloadField(self):
     img = ImageI()
     self.assert_(img.getDetails())
     img.unloadDetails()
     self.assert_(not img.getDetails())
Ejemplo n.º 7
0
 def testUnloadField(self):
     img = ImageI()
     assert img.getDetails()
     img.unloadDetails()
     assert not img.getDetails()
Ejemplo n.º 8
0
 def testUnloadField(self):
     img = ImageI()
     self.assert_( img.getDetails() )
     img.unloadDetails()
     self.assert_( not img.getDetails() )