# Path: MuseParse/tests/testLilyMethods/lily.py
# class Lily(unittest.TestCase):
# 
#     def setUp(self):
#         self.compile = False
#         self.wrappers = []
# 
#     def testValue(self):
#         if hasattr(self, "lilystring"):
#             if hasattr(self, "item"):
#                 self.assertEqual(self.lilystring, self.item.toLily())
# 
#     def testCompilation(self):
#         if hasattr(self, "compile") and self.compile is True:
# 
#             filepath = expanduser("~")
#             script = ''
#             if sys.platform == 'darwin':
#                 script = os.path.join(filepath, 'bin', 'lilypond')
#             filepath = os.path.join(filepath, self.name)
#             if self.compile and hasattr(self, "item"):
#                 if os.path.exists(filepath + ".pdf"):
#                     os.remove(filepath + ".pdf")
# 
#                 ly = LilypondOutput.LilypondRenderer(
#                     self.item, filepath + ".xml", script)
#                 if hasattr(self, "wrappers"):
#                     ly.run(wrappers=self.wrappers)
#                 else:
#                     ly.run()
#                 self.assertTrue(os.path.exists(filepath + ".pdf"))
# 
# Path: MuseParse/classes/ObjectHierarchy/ItemClasses/Ornaments.py
# class InvertedMordent(BaseClass.Base):
# class Mordent(BaseClass.Base):
# class Trill(BaseClass.Base):
# class TrillSpanner(BaseClass.Base):
# class Turn(BaseClass.Base):
# class InvertedTurn(BaseClass.Base):
# class Tremolo(BaseClass.Base):
#     def toLily(self):
#     def toLily(self):
#     def toLily(self):
#     def __init__(self, **kwargs):
#     def toLily(self):
#     def toLily(self):
#     def toLily(self):
#     def __init__(self, **kwargs):
#     def toLily(self):


from MuseParse.tests.testLilyMethods.lily import Lily
from MuseParse.classes.ObjectHierarchy.ItemClasses import Ornaments

    def setUp(self):
        self.item = Ornaments.Tremolo()
        self.lilystring = "\\repeat tremolo 4 "


class testTremoloType(Lily):

    def setUp(self):
        self.item = Ornaments.Tremolo(type="single")
        self.lilystring = "\\repeat tremolo 4 "


class testTremoloVal(Lily):

    def setUp(self):
        self.item = Ornaments.Tremolo(value=2)
        self.lilystring = "\\repeat tremolo 4 "


class testTremoloTypeStart(Lily):

    def setUp(self):
        self.item = Ornaments.Tremolo(type="start")
        self.lilystring = "\\repeat tremolo 4 {"


class testTremoloTypeStop(Lily):

    def setUp(self):

# Path: MuseParse/tests/testLilyMethods/lily.py
# class Lily(unittest.TestCase):
# 
#     def setUp(self):
#         self.compile = False
#         self.wrappers = []
# 
#     def testValue(self):
#         if hasattr(self, "lilystring"):
#             if hasattr(self, "item"):
#                 self.assertEqual(self.lilystring, self.item.toLily())
# 
#     def testCompilation(self):
#         if hasattr(self, "compile") and self.compile is True:
# 
#             filepath = expanduser("~")
#             script = ''
#             if sys.platform == 'darwin':
#                 script = os.path.join(filepath, 'bin', 'lilypond')
#             filepath = os.path.join(filepath, self.name)
#             if self.compile and hasattr(self, "item"):
#                 if os.path.exists(filepath + ".pdf"):
#                     os.remove(filepath + ".pdf")
# 
#                 ly = LilypondOutput.LilypondRenderer(
#                     self.item, filepath + ".xml", script)
#                 if hasattr(self, "wrappers"):
#                     ly.run(wrappers=self.wrappers)
#                 else:
#                     ly.run()
#                 self.assertTrue(os.path.exists(filepath + ".pdf"))
# 
# Path: MuseParse/classes/ObjectHierarchy/ItemClasses/Ornaments.py
# class InvertedMordent(BaseClass.Base):
# class Mordent(BaseClass.Base):
# class Trill(BaseClass.Base):
# class TrillSpanner(BaseClass.Base):
# class Turn(BaseClass.Base):
# class InvertedTurn(BaseClass.Base):
# class Tremolo(BaseClass.Base):
#     def toLily(self):
#     def toLily(self):
#     def toLily(self):
#     def __init__(self, **kwargs):
#     def toLily(self):
#     def toLily(self):
#     def toLily(self):
#     def __init__(self, **kwargs):
#     def toLily(self):


# Path: MuseParse/tests/testLilyMethods/testOrnaments.py
from MuseParse.tests.testLilyMethods.lily import Lily
from MuseParse.classes.ObjectHierarchy.ItemClasses import Ornaments


    def setUp(self):
        self.item = Ornaments.Tremolo()
        self.lilystring = "\\repeat tremolo 4 "


class testTremoloType(Lily):

    def setUp(self):
        self.item = Ornaments.Tremolo(type="single")
        self.lilystring = "\\repeat tremolo 4 "


class testTremoloVal(Lily):

    def setUp(self):
        self.item = Ornaments.Tremolo(value=2)
        self.lilystring = "\\repeat tremolo 4 "


class testTremoloTypeStart(Lily):

    def setUp(self):
        self.item = Ornaments.Tremolo(type="start")
        self.lilystring = "\\repeat tremolo 4 {"


class testTremoloTypeStop(Lily):

    def setUp(self):

        self.item = Ornaments.Tremolo(type="stop")