Esempio n. 1
0
def test_addr():
    for dat in glob.glob('project1/text/*.txt'):
        data = redactor.readdata(dat)
        Y, y = redactor.dates(data)
        P = redactor.phone(Y)
        Q, q = redactor.addr(P)
        assert q >= 0
Esempio n. 2
0
def test_concept():
    for dat in glob.glob('project1/text/*.txt'):
        data = redactor.readdata(dat)
        Y, y = redactor.dates(data)
        P = redactor.phone(Y)
        Q, q = redactor.addr(P)
        N, n = redactor.name(Q)
        Text = redactor.genders(N)
        F, f = redactor.concept(Text)
        assert f >= 0
Esempio n. 3
0
def test_readdata():
    for dat in glob.glob('project1/text/*.txt'):
        data = redactor.readdata(dat)
        assert data is not None
Esempio n. 4
0
def test_dates():
    for dat in glob.glob('project1/text/*.txt'):
        data = redactor.readdata(dat)
        Y, y = redactor.dates(data)
        assert len(y) > 0