Mark pinned documents

Can you make assertions on the "data" used for the templating, instead of the rendered HTML?