I found these in the kitchen cupboard today where the previous owner kept her spices. I thought they were miniature salt and pepper shakers. I just discovered the tops do come off with one little hole underneath, so I guess they could be. They are very tiny tho so not sure when/where you would use them.
the one on the right has some powder in it that kind of smells like pepper but not sure.