We develop a revealed preference test for optimal acquisition of costly information. The test encompasses models of rational inattention, sequential signal processing, and search. We provide limits on the extent to which attention costs can be recovered from choice data. We experimentally elicit...