Ejemplo n.º 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}')
Ejemplo n.º 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}")
Ejemplo n.º 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}")
Ejemplo n.º 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}')
Ejemplo n.º 5
0
def test_parse_variables():
    assert parse_variables('No variables') == []
    assert parse_variables('The {foo} is the {bar}.') == ['foo', 'bar']
    assert parse_variables('{}') == ['']