When the contest is decided, costs shall be taxed against the candidate filing the complaint if he is unsuccessful, or, if he is successful, against the counties and cities included in the area in which the election was held. A certificate of election shall be granted to the successful party, unless he has already received one.
Va. Code § 24.2-811