def test_text__trivial(self): h = TextHistory() self.assertEqual('', h.text) with self.assertRaises(AttributeError): h.text = 'NEW'