예제 #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,}'