def testIsNull(self): """Test Null check""" self.assertFalse(self.item.IsNull()) self.assertTrue(ed_style.NullStyleItem().IsNull()) self.assertTrue(self.null.IsNull()) self.null.SetFore("#000000") self.assertFalse(self.null.IsNull())
def setUp(self): self.item = ed_style.StyleItem("#FF0000,bold", "#000000", "Times", "10") self.itemstr = "fore:#FF0000,back:#000000,face:Times,size:10,modifiers:bold" self.item2 = ed_style.StyleItem("#FF0000") self.itemstr2 = "fore:#FF0000" self.null = ed_style.NullStyleItem()