示例#1
0
def test_count():
    actual = get_citations_needed_count(url)
    expected = "The total citations needed is: 4"
    assert actual == expected
def test_count_beer():
    URL = 'https://en.wikipedia.org/wiki/Beer'
    actual = get_citations_needed_count(URL)
    expected = 'Citation needed for 0'
    assert actual == expected
示例#3
0
def test_get_citation_needed_count():
    actual = get_citations_needed_count(url)
    expected = 4
    assert actual == expected
def test_count_lemmy_count():
    URL = 'https://en.wikipedia.org/wiki/Lemmy'
    actual = get_citations_needed_count(URL)
    expected = 'Citation needed for 1'
    assert actual == expected
示例#5
0
def test_citations_counting():
    assert get_citations_needed_count("https://en.wikipedia.org/wiki/History_of_Mexico") == 5