def test_get_en_text_titles():
    txts = [u'Avot', u'Avoth', u'Daniel', u'Dan', u'Dan.', u'Rashi'] # u"Me'or Einayim, Vayera"
    ctxts = [u'Rashi on Exodus', u'Ramban on Genesis', u'Tosafot on Shabbat', u'Rashi on Gen.', u'Nachmanides on Exodus', u'Nachmanides on Ex.']
    titles = library.full_title_list()
    for txt in txts:
        assert txt in titles
    for txt in ctxts:
        assert txt not in titles

    titles = library.full_title_list(with_commentary=True)
    for txt in txts:
        assert txt in titles
    for txt in ctxts:
        assert txt in titles
def test_get_en_text_titles():
    txts = [u'Avot', u'Avoth', u'Daniel', u'Dan', u'Dan.', u'Rashi', u"Me'or Einayim, Vayera"]
    ctxts = [u'Rashi on Exodus', u'Ramban on Genesis', u'Tosafot on Shabbat', u'Rashi on Gen.', u'Nachmanides on Exodus', u'Nachmanides on Ex.']
    titles = library.full_title_list()
    for txt in txts:
        assert txt in titles
    for txt in ctxts:
        assert txt not in titles

    titles = library.full_title_list(with_commentary=True)
    for txt in txts:
        assert txt in titles
    for txt in ctxts:
        assert txt in titles
Exemple #3
0
def test_get_he_text_titles():
    txts = [
        u'\u05d1\u05e8\u05d0\u05e9\u05d9\u05ea', u'\u05e9\u05de\u05d5\u05ea',
        u'\u05d5\u05d9\u05e7\u05e8\u05d0'
    ]
    titles = library.full_title_list(lang="he")
    for txt in txts:
        assert txt in titles
def test_get_en_text_titles():
    txts = [u"Avot", u"Avoth", u"Daniel", u"Dan", u"Dan.", u"Rashi"]  # u"Me'or Einayim, Vayera"
    ctxts = [
        u"Rashi on Exodus",
        u"Ramban on Genesis",
        u"Tosafot on Shabbat",
        u"Rashi on Gen.",
        u"Nachmanides on Exodus",
        u"Nachmanides on Ex.",
    ]
    titles = library.full_title_list()
    for txt in txts:
        assert txt in titles
    for txt in ctxts:
        assert txt not in titles

    titles = library.full_title_list(with_commentary=True)
    for txt in txts:
        assert txt in titles
    for txt in ctxts:
        assert txt in titles
def test_get_he_text_titles():
    txts = [u'\u05d1\u05e8\u05d0\u05e9\u05d9\u05ea', u'\u05e9\u05de\u05d5\u05ea', u'\u05d5\u05d9\u05e7\u05e8\u05d0']
    titles = library.full_title_list(lang="he")
    for txt in txts:
        assert txt in titles