예제 #1
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()
예제 #2
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()
예제 #3
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())
예제 #4
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() )