identifiers.gen_swhid: Use QualifiedSWHID instead of the deprecated swhid() function.
Also fix tests using it with the wrong argument type (a dict with an "id" key, instead of just the object id).
Migrated from D5169 (view on Phabricator)
Also fix tests using it with the wrong argument type (a dict with an "id" key, instead of just the object id).
Migrated from D5169 (view on Phabricator)