Yup I had to have a car go through smog too after purchase. Funny how I look back now and realize each time it was different and some of the times I had to do nothing. Welcome to California.
But the main thing with all of the transactions was the paperwork was done beforehand and the car was registered.