def test_fix_udfs_with_gen_out_of_sync(self):
        obj = self.factory.make_file()
        obj.generation = obj.volume.generation + 1
        obj.save()
        user2 = self.factory.make_user()
        obj2 = self.factory.make_file(owner=user2)
        obj3 = self.factory.make_file(owner=user2)
        obj2.generation = obj2.volume.generation + 2
        obj2.save()
        obj3.generation = obj3.volume.generation + 1
        user_ids = [obj.volume.owner.id, user2.id]
        fix_udfs_with_generation_out_of_sync(user_ids, logging)
        obj.volume.refresh_from_db()
        self.assertEqual(obj.generation, obj.volume.generation)
        obj2.volume.refresh_from_db()
        self.assertEqual(obj2.generation, obj2.volume.generation)