Skip to content

Commit

Permalink
Update Python test
Browse files Browse the repository at this point in the history
  • Loading branch information
ahankinson committed Dec 18, 2014
1 parent 92a8517 commit 13feb9f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions python/test/meielement_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ def test_printElement(self):
b1 = MeiElement("body")
s1 = MeiElement("staff")
n1 = MeiElement("note")
n2 = MeiElement("note")

m.addAttribute("meiversion", "2013")

Expand All @@ -395,11 +396,13 @@ def test_printElement(self):
m1.addChild(b1)
b1.addChild(s1)
s1.addChild(n1)
s1.addChild(n2)

m.printElement()
n1.printElement()

n1.addAttribute('headshape', 'diamond')
n1.addAttribute('pname', 'c')
n2.addAttribute('pname', 'd')

m.printElement()
def suite():
test_suite = unittest.makeSuite(MeiElementTest, 'test')
return test_suite

0 comments on commit 13feb9f

Please sign in to comment.