Esempio n. 1
0
def test_map_location(example_file):
    file, data = example_file
    page = mMap(get_html_from_file(file), raise_exceptions=True)
    assert page.location() == data['location']['name']
Esempio n. 2
0
def test_player_xp(example_file):
    file, data = example_file
    page = mMap(get_html_from_file(file), raise_exceptions=True)
    assert page.getXP() == data['player']['xp']
Esempio n. 3
0
def test_player_name(example_file):
    file, data = example_file
    page = mMap(get_html_from_file(file), raise_exceptions=True)
    assert page.player() == data['player']['name']
Esempio n. 4
0
def test_map_zed_count(example_file):
    file, data = example_file
    page = mMap(get_html_from_file(file), raise_exceptions=True)
    assert page.count_zombies() == data['location']['zombies']
Esempio n. 5
0
def test_map_baracade_level(example_file):
    file, data = example_file
    page = mMap(get_html_from_file(file), raise_exceptions=True)
    assert page.barricade_level() == data['location']['barricade']
Esempio n. 6
0
def test_map_coords(example_file):
    file, data = example_file
    page = mMap(get_html_from_file(file), raise_exceptions=True)
    assert page.coordinates() == data['location']['coords']