Magic Town is a 1947 American comedy film directed by William A. Wellman and starring James Stewart and Jane Wyman.
The "magic" of the title is the mathematical miracle (as it is called in the film) that certain towns can be used to fairly accurately predict the actions of the whole country.
Lawrence "Rip" Smith is a former basketball player and ex-military who now runs a company that performs polls and consumer surveys.
Rip concludes that the small town demographic is a perfect match for the country as a whole, and believes he has finally found his miracle formula.
Eager to test his theory, Rip sells a survey on progressive education to a client, with a promise the result will stand for the whole country.
The town is called "the public opinion capital of the U.S." and its inhabitants start selling their views on consumer products on every street corner.
Later, Rip learns from Nickleby's son Hank that his father already has sold land where the main expansion would take place to a company.
To stop this, Rip manages to publish parts of the council speech a few weeks earlier, where it said that they would expand the town "with their own hands".
A lot of inhabitants who read the article start demanding that the city council build on the designated land to save the reputation of the town.