Esempio n. 1
0
def test_papersonly():
    s = stats.copy()
    s['new_papers'] = 3
    s['new_likely'] = 12
    status_msg = make_status_message(s)
    assert(status_msg == 'Today I read 3 papers, ' +\
                         'and learned 2 new mechanisms!')
Esempio n. 2
0
def test_papersonly():
    s = stats.copy()
    s['new_papers'] = 3
    s['new_top'] = 12
    status_msg = make_status_message(s)
    assert(status_msg == 'Today I read 3 papers, ' +\
                         'and learned 2 new mechanisms!')
Esempio n. 3
0
def test_absonly():
    s = stats.copy()
    s['new_abstracts'] = 7
    s['new_likely'] = 12
    status_msg = make_status_message(s)
    assert(status_msg == 'Today I read 7 abstracts, ' +\
                         'and learned 2 new mechanisms!')
Esempio n. 4
0
def test_absonly():
    s = stats.copy()
    s['new_abstracts'] = 7
    s['new_top'] = 12
    status_msg = make_status_message(s)
    assert(status_msg == 'Today I read 7 abstracts, ' +\
                         'and learned 2 new mechanisms!')
Esempio n. 5
0
def test_abs_and_papers():
    s = stats.copy()
    s['new_papers'] = 2
    s['new_abstracts'] = 2
    s['new_likely'] = 12
    status_msg = make_status_message(s)
    assert(status_msg == 'Today I read 2 papers and 2 abstracts, ' +\
                         'and learned 2 new mechanisms!')
Esempio n. 6
0
def test_abs_and_papers():
    s = stats.copy()
    s['new_papers'] = 2
    s['new_abstracts'] = 2
    s['new_top'] = 12
    status_msg = make_status_message(s)
    assert(status_msg == 'Today I read 2 papers and 2 abstracts, ' +\
                         'and learned 2 new mechanisms!')
Esempio n. 7
0
def test_abs_and_paper():
    s = stats.copy()
    s['new_papers'] = 1
    s['new_abstracts'] = 1
    s['new_likely'] = 12
    status_msg = make_status_message(s)
    assert(status_msg == 'Today I read 1 paper and 1 abstract, ' +\
                         'and learned 2 new mechanisms!')
Esempio n. 8
0
def test_noabs_nopaper():
    s = stats.copy()
    status_msg = make_status_message(s)
    assert (status_msg is None)
Esempio n. 9
0
def test_noabs_nopaper():
    s = stats.copy()
    status_msg = make_status_message(s)
    assert(status_msg is None)