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])
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])
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)