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() )