Skip to content

Commit

Permalink
Add unit test for xml attrs in tags
Browse files Browse the repository at this point in the history
  • Loading branch information
offlinemark committed Oct 22, 2024
1 parent e923089 commit 58cfb4a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_ableton.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ def test_tag_existing_locators():
proj._parse_markers(als)
assert(proj.raw_markers == [AbletonRawMarker(time=0.0, text='Locator Text')])

def test_tag_xml_attrs():
als = b'<Tag attrA=1 attrB=2></Tag>'
ret = AbletonProject._find_tag(als, 'Tag')
assert(ret == als)

def test_tag_empty_locators():
als = b'<Locators><Locators /></Locators>'
Expand Down

0 comments on commit 58cfb4a

Please sign in to comment.