Example #1
0
def test_parse_variables():
    assert parse_variables('No variables') == []
    assert parse_variables('The {foo} is the {bar}.') == ['foo', 'bar']
    with pytest.raises(TrajectError):
        parse_variables('{}')
    with pytest.raises(TrajectError):
        parse_variables('{1illegal}')
Example #2
0
def test_parse_variables():
    assert parse_variables("No variables") == []
    assert parse_variables("The {foo} is the {bar}.") == ["foo", "bar"]
    with pytest.raises(TrajectError):
        parse_variables("{}")
    with pytest.raises(TrajectError):
        parse_variables("{1illegal}")
Example #3
0
def test_parse_variables():
    assert parse_variables("No variables") == []
    assert parse_variables("The {foo} is the {bar}.") == ["foo", "bar"]
    with pytest.raises(TrajectError):
        parse_variables("{}")
    with pytest.raises(TrajectError):
        parse_variables("{1illegal}")
Example #4
0
def test_parse_variables():
    assert parse_variables('No variables') == []
    assert parse_variables('The {foo} is the {bar}.') == ['foo', 'bar']
    with pytest.raises(TrajectError):
        parse_variables('{}')
    with pytest.raises(TrajectError):
        parse_variables('{1illegal}')
Example #5
0
def test_parse_variables():
    assert parse_variables('No variables') == []
    assert parse_variables('The {foo} is the {bar}.') == ['foo', 'bar']
    assert parse_variables('{}') == ['']