def METHOD_NAME(self):
    print("TestSynchronousMode.test_camera_on_synchronous_mode")
    cam_bp = self.world.get_blueprint_library().find('sensor.camera.rgb')
    t = carla.Transform(carla.Location(z=10))
    camera = self.world.spawn_actor(cam_bp, t)
    try:
        image_queue = Queue()
        camera.listen(image_queue.put)
        frame = None
        for _ in range(0, 100):
            self.world.tick()
            ts = self.world.get_snapshot().timestamp
            if frame is not None:
                self.assertEqual(ts.frame, frame + 1)
            frame = ts.frame
            image = image_queue.get()
            self.assertEqual(image.frame, ts.frame)
            self.assertEqual(image.timestamp, ts.elapsed_seconds)
    finally:
        camera.destroy()