def testUnloadSet(self): img = ImageI() assert img.sizeOfPixels() >= 0 img.addPixels(PixelsI()) assert 1 == img.sizeOfPixels() img.unloadPixels() assert img.sizeOfPixels() < 0
def testUnloadSet(self): img = ImageI() self.assert_(img.sizeOfPixels() >= 0) img.addPixels(PixelsI()) self.assert_(1 == img.sizeOfPixels()) img.unloadPixels() self.assert_(img.sizeOfPixels() < 0)
def testUnloadSet(self): img = ImageI() self.assert_( img.sizeOfPixels() >= 0 ) img.addPixels( PixelsI() ) self.assert_( 1==img.sizeOfPixels() ) img.unloadPixels() self.assert_( img.sizeOfPixels() < 0 )
def testClearSet(self): img = ImageI() assert img.sizeOfPixels() >= 0 img.addPixels(PixelsI()) assert 1 == img.sizeOfPixels() img.clearPixels() assert img.sizeOfPixels() >= 0 assert 0 == img.sizeOfPixels()
def testClearSet(self): img = ImageI() self.assert_(img.sizeOfPixels() >= 0) img.addPixels(PixelsI()) self.assert_(1 == img.sizeOfPixels()) img.clearPixels() self.assert_(img.sizeOfPixels() >= 0) self.assert_(0 == img.sizeOfPixels())
def testClearSet(self): img = ImageI() self.assert_( img.sizeOfPixels() >= 0 ) img.addPixels( PixelsI() ) self.assert_( 1==img.sizeOfPixels() ) img.clearPixels() self.assert_( img.sizeOfPixels() >= 0 ) self.assert_( 0==img.sizeOfPixels() )
def testRemoveFromSet(self): pix = PixelsI() img = ImageI() assert img.sizeOfPixels() >= 0 img.addPixels(pix) assert 1 == img.sizeOfPixels() img.removePixels(pix) assert 0 == img.sizeOfPixels()
def testRemoveFromSet(self): pix = PixelsI() img = ImageI() self.assert_(img.sizeOfPixels() >= 0) img.addPixels(pix) self.assert_(1 == img.sizeOfPixels()) img.removePixels(pix) self.assert_(0 == img.sizeOfPixels())
def testRemoveFromSet(self): pix = PixelsI() img = ImageI() self.assert_( img.sizeOfPixels() >= 0 ) img.addPixels( pix ) self.assert_( 1==img.sizeOfPixels() ) img.removePixels( pix ) self.assert_( 0==img.sizeOfPixels() )
def testSimpleCtor(self): img = ImageI() assert img.isLoaded() assert img.sizeOfPixels() >= 0
def testSimpleCtor(self): img = ImageI() self.assert_(img.isLoaded()) self.assert_(img.sizeOfPixels() >= 0)