Beispiel #1
0
 def testCalculateDelayMissing(self):
   points = [FakePoint(0, 0), FakePoint(2, 0)]
   mask = rtp_analyzer.calculate_delay(0, 2, 1, points)
   self.assertMaskEqual(mask, [0, -1, 0], [False, True, False])
Beispiel #2
0
 def testCalculateDelayBorders(self):
   points = [FakePoint(0, 0), FakePoint(2, 0)]
   mask = rtp_analyzer.calculate_delay(0, 3, 2, points)
   self.assertMaskEqual(mask, [0, 0, -1], [False, False, True])
Beispiel #3
0
 def testCalculateDelaySimple(self):
   points = [FakePoint(0, 0), FakePoint(1, 0)]
   mask = rtp_analyzer.calculate_delay(0, 1, 1, points)
   self.assertMaskEqual(mask, [0, 0], False)