for functional pip tests, we have an "assert_installed" function which is not very good, and worse, it's not consistently used.
at it's core, I think it should be using pkg_resources (which it's not currently), but that's my first question, if people agree with that?
assuming you agree, then the second question is how to use it, since we need to use it against a *different* environment (the environment being functionally tested).
One thought is to construct a WorkingSet using the path entries of the target environment, but that's not particularly easy, and I worry about it being fragile, and itself a source of bugs.
So that leaves running pkg_resources code in a subprocess in the target environment, which is not very attractive, but I'm thinking it might be the best way.