def test_version__trivial(self): h = TextHistory() self.assertEqual(0, h.version) with self.assertRaises(AttributeError): h.version = 42