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']
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']
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']
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']
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']
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']