Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/d/r/DrumBurp-HEAD/src/test/testMeasure.py   DrumBurp(Download)
        iterator = fileUtils.dbFileIterator(handle)
        measure = Measure()
        measure.read(iterator)
        self.assertEqual(len(measure), 8)
        self.assertEqual(measure.numNotes(), 13)
        iterator = fileUtils.dbFileIterator(handle)
        measure = Measure()
        measure.read(iterator)
        self.assertEqual(measure.repeatCount, 6)
        self.assert_(measure.isRepeatStart())
        iterator = fileUtils.dbFileIterator(handle)
        measure = Measure()
        measure.read(iterator)
        self.assert_(measure.isRepeatEnd())
        self.assertEqual(measure.alternateText, "2.")
        iterator = fileUtils.dbFileIterator(handle)
        measure = Measure()
        measure.read(iterator)
        self.assert_(measure.isLineBreak())
 
        iterator = fileUtils.dbFileIterator(handle)
        measure = Measure()
        measure.read(iterator)
        self.assert_(measure.isSectionEnd())