Пример #1
0
def test_increment_year(cit_crosssample, cit_panelsample):
    recs = CorpRecords(data=cit_crosssample)
    assert recs.current_year == recs.data_year
    recs.increment_year()
    assert recs.current_year == recs.data_year + 1
    recs2 = CorpRecords(data=cit_panelsample, data_type='panel')
    assert recs2.current_year == recs2.data_year
    recs2.increment_year()
    assert recs2.current_year == recs2.data_year + 1
Пример #2
0
def test_increment_year(cit_fullsample):
    recs = CorpRecords(data=cit_fullsample)
    assert recs.current_year == recs.data_year
    recs.increment_year()
    assert recs.current_year == recs.data_year + 1