test: Migrate parse_swhid test cases to pytest
First step prior to rework the error messages and add more strictness to the parse_swhid function.
Related to #2769 (closed)
Test Plan
tox
Migrated from D4457 (view on Phabricator)
First step prior to rework the error messages and add more strictness to the parse_swhid function.
Related to #2769 (closed)
tox
Migrated from D4457 (view on Phabricator)