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