Make sure you know California’s smog check requirements when selling your car if you want to avoid a major headache.