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

All Samples(27)  |  Call(25)  |  Derive(0)  |  Import(2)

src/d/r/DrumBurp-HEAD/src/test/testScore.py   DrumBurp(Download)
import unittest
from cStringIO import StringIO
from Data.Score import Score, InconsistentRepeats, ScoreFactory
from Data import DrumKit, Drum, DBErrors
from Data.DBErrors import BadTimeError, OverSizeMeasure
    def setUp(self):
        self.score = Score()
 
    def testEmptyScore(self):
        self.assertEqual(len(self.score), 0)
    def setUp(self):
        self.score = Score()
        self.score.drumKit = DrumKit.getNamedDefaultKit()
        for dummy in range(0, 12):
            self.score.insertMeasureByIndex(16)
    def setUp(self):
        self.score = Score()
 
    def testFormatScoreDefaultWidth(self):
        for dummy in range(0, 20):
    def setUp(self):
        self.score = Score()
        self.score.kit = DrumKit.getNamedDefaultKit()
        for width in range(0, 8):
            self.score.insertMeasureByIndex(width + 8)

src/d/r/DrumBurp-HEAD/src/test/testAsciiExport.py   DrumBurp(Download)
from Data.ASCIISettings import ASCIISettings
from Data import DrumKit, Drum, MeasureCount
from Data.Score import Score
from Data.NotePosition import NotePosition
from Notation.AsciiExport import Exporter, getExportDate
    def testEmpty(self):
        score = Score()
        settings = ASCIISettings()
        output = self.getOutput(score, settings)
        self.assertEqual(output,
    def testWithKit(self):
        score = Score()
        settings = ASCIISettings()
        score.drumKit = DrumKit.DrumKit()
        score.drumKit.addDrum(Drum.Drum("HiHat", "Hh", "x"))
    def testSingleMeasure(self):
        score = Score()
        settings = ASCIISettings()
        settings.omitEmpty = False
        score.drumKit = DrumKit.DrumKit()
    def testMultiMeasures(self):
        score = Score()
        settings = ASCIISettings()
        settings.omitEmpty = False
        score.drumKit = DrumKit.DrumKit()