def setUp(self):
self.testIntervals = []<EOL>self.NUM_TEST_INTERVALS = <NUM_LIT:1000><EOL>self.MAX_INTERVAL = <NUM_LIT><EOL>self.MIN_INTERVAL = <NUM_LIT:0><EOL>self.NUM_TESTS = <NUM_LIT:100><EOL>for dummy in range(<NUM_LIT:0>, self.NUM_TEST_INTERVALS):<EOL><INDENT>s = (random.random() * (self.MAX_INTERVAL - self.MIN_INTERVAL)) +self.MIN_INTERVAL<EOL>e = (random.random() * (self.MAX_INTERVAL - s)) + s<EOL>self.testIntervals.append(TestIntervalTree.TestInterval(s, e))<EOL><DEDENT>self.tree = IntervalTree(self.testIntervals)<EOL>
Set up some test interval trees and intervals.