CCP 1034     

Art. 1034.  Exceptions and motions

A defendant in an incidental action may plead any of the exceptions available to a defendant in a principal action, and may raise any of the objections enumerated in Articles 925 through 927, except that an objection of improper venue may not be urged if the principal action has been instituted in the proper venue.  Exceptions pleaded by the defendant in an incidental action shall be subject to all of the provisions of Articles 924 through 934.

A party to an incidental action may plead any of the written motions available to a party to a principal action, subject to the provisions of Articles 961 through 969.