def test_set_immutable(self): b = SkBitmap() self.assertFalse(b.isImmutable()) b.setImmutable() self.assertTrue(b.isImmutable())