def test_parse_item_tandem_spine_names_from_user_instrument(): sco = score.Score() main.parse_item("*I:violin 1", sco) assert sco.spine_names == ["violin 1"]
def test_parse_item_einterp(): item = main.parse_item("**kern", score.Score()) assert isinstance(item, score.Exclusive)
def test_parse_item_tandem(): item = main.parse_item("*ClefF4", score.Score()) assert isinstance(item, score.Tandem)
def test_parse_item_bar(): item = main.parse_item("=2:||:", score.Score()) assert isinstance(item, score.Bar)
def test_parse_item_list(): item = main.parse_item(["**kern", "**kern"], score.Score()) assert [x.name for x in item] == ["kern", "kern"]
def test_parse_item_null(): item = main.parse_item(".", score.Score()) assert isinstance(item, score.NullToken)
def test_parse_item_null_interpretation(): item = main.parse_item("*", score.Score()) assert isinstance(item, score.NullInterpretation)
def test_parse_item_comment(): item = main.parse_item("! foo", score.Score()) assert isinstance(item, score.Comment)