def test_empty(self): interval = unit.estimate_sampling_interval([]) self.assertEqual(interval, None)
def test_basic(self): interval = unit.estimate_sampling_interval([1,2]) self.assertEqual(interval, 1)