def test_partial_hash_packet_with_nones(self): self.assertEqual(concat._partial_hash_packet(None), concat._partial_hash_packet(None)) self.assertEqual(concat._partial_hash_packet(None), concat._partial_hash_packet(None)) self.assertEqual(concat._partial_hash_packet(None), concat._partial_hash_packet(None)) self.assertEqual(concat._partial_hash_packet(None), concat._partial_hash_packet(None)) self.assertEqual(concat._partial_hash_packet(None), concat._partial_hash_packet(None)) self.assertEqual(concat._partial_hash_packet(None), concat._partial_hash_packet(None)) self.assertEqual(concat._partial_hash_packet(None), concat._partial_hash_packet(None)) self.assertEqual(concat._partial_hash_packet(None), concat._partial_hash_packet(None)) self.assertEqual(concat._partial_hash_packet(None), concat._partial_hash_packet(None)) self.assertNotEqual(concat._partial_hash_packet(self.example_packet), concat._partial_hash_packet(None)) self.assertNotEqual(concat._partial_hash_packet(self.example_packet), concat._partial_hash_packet(None)) self.assertNotEqual(concat._partial_hash_packet(self.example_packet), concat._partial_hash_packet(None)) self.assertNotEqual(concat._partial_hash_packet(self.example_packet), concat._partial_hash_packet(None)) self.assertNotEqual(concat._partial_hash_packet(self.example_packet), concat._partial_hash_packet(None)) self.assertNotEqual(concat._partial_hash_packet(self.example_packet), concat._partial_hash_packet(None)) self.assertNotEqual(concat._partial_hash_packet(self.example_packet), concat._partial_hash_packet(None)) self.assertNotEqual(concat._partial_hash_packet(self.example_packet), concat._partial_hash_packet(None)) self.assertNotEqual(concat._partial_hash_packet(self.example_packet), concat._partial_hash_packet(None)) self.assertNotEqual(concat._partial_hash_packet(None), concat._partial_hash_packet(self.example_packet)) self.assertNotEqual(concat._partial_hash_packet(None), concat._partial_hash_packet(self.example_packet)) self.assertNotEqual(concat._partial_hash_packet(None), concat._partial_hash_packet(self.example_packet)) self.assertNotEqual(concat._partial_hash_packet(None), concat._partial_hash_packet(self.example_packet)) self.assertNotEqual(concat._partial_hash_packet(None), concat._partial_hash_packet(self.example_packet)) self.assertNotEqual(concat._partial_hash_packet(None), concat._partial_hash_packet(self.example_packet)) self.assertNotEqual(concat._partial_hash_packet(None), concat._partial_hash_packet(self.example_packet)) self.assertNotEqual(concat._partial_hash_packet(None), concat._partial_hash_packet(self.example_packet)) self.assertNotEqual(concat._partial_hash_packet(None), concat._partial_hash_packet(self.example_packet))
def test_partial_hash_packet_change_sensors(self): self.cloned_packet.microphone_sensor().set_sensor_name("foo") self.cloned_packet.barometer_sensor().set_sensor_name("foo") self.cloned_packet.location_sensor().set_sensor_name("foo") self.cloned_packet.accelerometer_sensor().set_sensor_name("foo") self.cloned_packet.magnetometer_sensor().set_sensor_name("foo") self.cloned_packet.gyroscope_sensor().set_sensor_name("foo") self.cloned_packet.light_sensor().set_sensor_name("foo") self.cloned_packet.infrared_sensor().set_sensor_name("foo") self.assertNotEqual(concat._partial_hash_packet(self.example_packet), concat._partial_hash_packet(self.cloned_packet)) self.assertNotEqual(concat._partial_hash_packet(self.example_packet), concat._partial_hash_packet(self.cloned_packet)) self.assertNotEqual(concat._partial_hash_packet(self.example_packet), concat._partial_hash_packet(self.cloned_packet)) self.assertNotEqual(concat._partial_hash_packet(self.example_packet), concat._partial_hash_packet(self.cloned_packet)) self.assertNotEqual(concat._partial_hash_packet(self.example_packet), concat._partial_hash_packet(self.cloned_packet)) self.assertNotEqual(concat._partial_hash_packet(self.example_packet), concat._partial_hash_packet(self.cloned_packet)) self.assertNotEqual(concat._partial_hash_packet(self.example_packet), concat._partial_hash_packet(self.cloned_packet)) self.assertNotEqual(concat._partial_hash_packet(self.example_packet), concat._partial_hash_packet(self.cloned_packet))
def test_partial_hash_packet_change_redvox_uuid(self): self.cloned_packet.set_uuid("foo") self.assertNotEqual(concat._partial_hash_packet(self.example_packet), concat._partial_hash_packet(self.cloned_packet))
def test_partial_hash_packet_change_sample_rate(self): self.cloned_packet.microphone_sensor().set_sample_rate_hz(81.0) self.assertNotEqual(concat._partial_hash_packet(self.example_packet), concat._partial_hash_packet(self.cloned_packet))
def test_partial_hash_packet_correct(self): self.assertEqual(concat._partial_hash_packet(self.example_packet), concat._partial_hash_packet(self.cloned_packet))