def test_sensor_diff_missing(self):
     self.cloned_packet.set_barometer_sensor(None)
     self.assertEqual(
         concat._identify_sensor_changes(
             [self.cloned_packet, self.example_packet, self.cloned_packet]),
         [1, 2])
 def test_sensor_diff_uuid(self):
     self.cloned_packet.set_uuid("diffuuid")
     self.assertEqual(
         concat._identify_sensor_changes(
             [self.cloned_packet, self.example_packet]), [1])
 def test_sensor_differences_sample_rate_change(self):
     self.cloned_packet.microphone_sensor().set_sample_rate_hz(81.0)
     self.assertEqual(
         concat._identify_sensor_changes(
             [self.cloned_packet, self.example_packet]), [1])
 def test_sensor_diff_sensor_name(self):
     self.cloned_packet.microphone_sensor().set_sensor_name("diffname")
     self.assertEqual(
         concat._identify_sensor_changes(
             [self.cloned_packet, self.example_packet]), [1])
 def test_sensor_diff_none(self):
     self.assertEqual(
         concat._identify_sensor_changes(
             [self.example_packet, self.cloned_packet]), [])