Source code

Revision control

Copy as Markdown

Other Tools

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at
from __future__ import absolute_import, print_function
import mozunit
import pytest
def parse(normalize):
reftest = pytest.importorskip("reftest")
def inner(path):
mp = reftest.ReftestManifest()
return mp
return inner
def test_parse_defaults(parse):
mp = parse("defaults.list")
assert len(mp.tests) == 4
for test in mp.tests:
if test["name"].startswith("foo"):
assert test["pref"] == ",true"
assert "pref" not in test
# invalid defaults
with pytest.raises(ValueError):
if __name__ == "__main__":