示例#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']
示例#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']
示例#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']
示例#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']
示例#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']
示例#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']