<caseResult _class='hudson.tasks.junit.CaseResult'><age>15</age><className>OmeroPy.test.integration.test_rawpixelsstore.TestRPS</className><duration>198.667</duration><errorDetails>assert False</errorDetails><errorStackTrace>self = &lt;test.integration.test_rawpixelsstore.TestRPS object at 0x7f176d207f90&gt;
tmpdir = local('/tmp/pytest-of-omero/pytest-12/testRomioToPyramid0')

    def testRomioToPyramid(self, tmpdir):
        """
        Here we create a pixels that is not big,
        then modify its metadata so that it IS big,
        in order to trick the service into throwing
        us a MissingPyramidException
        """
        from omero.util import concurrency
        pix = self.missing_pyramid()
        rps = self.sf.createRawPixelsStore()
        try:
            # First execution should certainly fail
            try:
                rps.setPixelsId(int(pix), True)
                assert False, "Should throw!"
            except omero.MissingPyramidException as mpm:
                assert int(pix) == mpm.pixelsID
    
            # Eventually, however, it should be generated
            i = 10
            success = False
            while i &gt; 0 and not success:
                try:
                    rps.setPixelsId(int(pix), True)
                    success = True
                except omero.MissingPyramidException as mpm:
                    assert int(pix) == mpm.pixelsID
                    backOff = mpm.backOff / 1000
                    event = concurrency.get_event("testRomio")
                    event.wait(backOff)  # seconds
                i -= 1
&gt;           assert success
E           assert False

test/integration/test_rawpixelsstore.py:116: AssertionError</errorStackTrace><failedSince>29</failedSince><name>testRomioToPyramid</name><properties></properties><skipped>false</skipped><status>FAILED</status></caseResult>