コード例 #1
0
def test_integrated_wronginfo():
    assert offlineapi.main("Egypt",
                           "capitaadf,population") == "invalid info name"
コード例 #2
0
def test_integrated_success2():
    assert offlineapi.main(
        "Egypt",
        "capital,population") == '{capital:Cairo,population:91290000,}'
コード例 #3
0
def test_integrated_wrongcountry():
    assert offlineapi.main(
        "dsdfasdf", "capital,population") == "this is not a right country name"
コード例 #4
0
def test_integrated_success1():
    assert offlineapi.main("Egypt", "capital") == '{capital:Cairo,}'