def test_equality(self): a = Title(self.title, self.full_title) b = Title('') c = Title(self.title, self.full_title) assert a != b assert hash(a) != hash(b) assert a is not b assert a == c
def title(): return Title(TestTitle.title, TestTitle.full_title)