Cal. Elec. Code § 16801
Where two or more contested elections are joined for the purpose of recounting votes, the costs shall be apportioned among the parties in the discretion of the court.