Disable the event and verify that the units can be trained at all based on the way they are inserted into the game's database. If they do not show as ever being trainable without the event handler running, then the event handler will have no effect whatever on these units. By this I mean do they ever show as valid production or purchase items within the city view when the event handler is turned off -- if not, then the problem is not in the lua code.
PlayerCanTrain, CityCanTrain, PlayerCanConstruct, CityCanConstruct, etc., only fire when the unit, building, etc., is otherwise trainable or constructable based on data within the game's database. If your unitTaratineCavalryCheaper1ID, unitTaratineCavalryCheaper2ID uniques are not trainable by whomever civilisationID is without the event handler running, they will not be made trainable with the event handler running. In essence all you can do with these CanX events is disable what is otherwise allowed from the information within the database.