Convert namespace tests to pytest
Convert namespace tests to pytest

This change refactors the `unittest` based tests for namespaces to
pytest based tests. This is primarily in preparation for adding a
new tests.

RDFLib/rdflib,RDFLib/rdflib,RDFLib/rdflib,RDFLib/rdflib