Ejemplo n.º 1
0
    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
Ejemplo n.º 2
0
def title():
    return Title(TestTitle.title, TestTitle.full_title)