Pig in a poke
The idioms pig in a poke and sell a pup (or buy a pup) refer to a confidence trick originating in the Late Middle Ages, when meat was scarce, but cats and dogs were not. The idiom pig in a poke can also simply refer to someone buying a low-quality pig in a bag because he or she did not carefully check what was in the bag.