Example #1
0
def test_init():
    collapse = Collapse.init_from_args("--translate tests/argfiles/collapse.txt")
    assert collapse.filename == "tests/argfiles/collapse.txt"

    collapse = Collapse.init_from_args("--attribute collapsibility")
    assert collapse.attribute == "collapsibility"
Example #2
0
def test_init(argfilepath):
    collapse = Collapse.init_from_args("--translate {0}".format(argfilepath('collapse.txt')))
    assert collapse.opts.filename == argfilepath('collapse.txt')

    collapse = Collapse.init_from_args("--attribute collapsibility")
    assert collapse.opts.attribute == "collapsibility"