def test_fail_set_strike(self): styleobj = Style() with self.assertRaises(TypeError): styleobj.strike = 1
def test_set_strike(self): styleobj = Style() styleobj.strike = True self.assertTrue(styleobj.strike)