@@ -84,7 +84,7 @@ class MusicXMLTests(unittest.TestCase):
|
||||
def test_voiced_forward_has_its_own_event_id(self):
|
||||
content = '<forward><duration>1</duration><voice>1</voice></forward>' + xml_note(duration=3, kind='half', extra='<dot/>')
|
||||
events = notes(parse(xml_score(content)))
|
||||
self.assertEqual([(n['id'], n['kind']) for n in events], [('spacer-1', 'spacer'), ('note-2', 'note')])
|
||||
self.assertEqual([(n['id'], n['kind']) for n in events], [('spacer_1', 'spacer'), ('note_2', 'note')])
|
||||
self.assertEqual([generator.model.fraction(n['duration']) for n in events], [1, 3])
|
||||
def test_doctype_allowed_but_entities_rejected(self):
|
||||
source = xml_score(xml_note())
|
||||
|
||||
Reference in New Issue
Block a user