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