It is unlawful to:

It is illegal to cross the centerline to pass when driving on hills, in curves, and in other locations where you cannot see ahead far enough to pass safely. You may not pass at street crossings, at railroad crossings, where signs indicate no passing zones, or where a solid yellow line is next to your lane. You may not pass when the vehicle in front of you has stopped for a pedestrian or when driving in work zones where passing would be hazardous.
DMV Writen Test Logo