示例#1
0
 def testUnloadSet(self):
     img = ImageI()
     assert img.sizeOfPixels() >= 0
     img.addPixels(PixelsI())
     assert 1 == img.sizeOfPixels()
     img.unloadPixels()
     assert img.sizeOfPixels() < 0
示例#2
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)
示例#3
0
 def testUnloadSet(self):
     img = ImageI()
     assert img.sizeOfPixels() >= 0
     img.addPixels(PixelsI())
     assert 1 == img.sizeOfPixels()
     img.unloadPixels()
     assert img.sizeOfPixels() < 0
示例#4
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 )
示例#5
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()
示例#6
0
 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())
示例#7
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()
示例#8
0
 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() )
示例#9
0
    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()
示例#10
0
    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())
示例#11
0
    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()
示例#12
0
    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() )
示例#13
0
 def testSimpleCtor(self):
     img = ImageI()
     assert img.isLoaded()
     assert img.sizeOfPixels() >= 0
示例#14
0
 def testSimpleCtor(self):
     img = ImageI()
     self.assert_(img.isLoaded())
     self.assert_(img.sizeOfPixels() >= 0)