def test_has_tei(self):
        mockapi = Mock()
        vol = Volume(mockapi, 'vol:1')
        p1 = Mock(spec=Page)
        p1.tei.exists = False
        p2 = Mock(spec=Page)
        p2.tei.exists = False
        vol.pages = [p1, p2]
        self.assertFalse(vol.has_tei)
        p2.tei.exists = True
        self.assertTrue(vol.has_tei)