Example #1
0
def test_l10n_dict(test_file):
    m = Miz(test_file)
    with pytest.raises(RuntimeError):
        assert m.l10n
    m.unzip()
    m.decode()
    assert isinstance(m.l10n, dict)
Example #2
0
def test_map_resources(test_file):
    m = Miz(test_file)
    with pytest.raises(RuntimeError):
        assert m.map_res
    m.unzip()
    m.decode()
    assert isinstance(m.map_res, dict)
Example #3
0
def test_mission_dict(test_file):
    m = Miz(test_file)
    with pytest.raises(RuntimeError):
        assert m.mission
    m.unzip()
    m.decode()
    assert isinstance(m.mission, Mission)