@@ -0,0 +1,728 @@
+import unittest%0Aimport re%0Aimport importlib%0A%0Aimport importlib_metadata%0A%0A%0Aclass BasicTests(unittest.TestCase):%0A    version_pattern = r'%5Cd+%5C.%5Cd+(%5C.%5Cd)?'%0A%0A    def test_retrieves_version_of_self(self):%0A        dist = importlib_metadata.Distribution.for_module(importlib_metadata)%0A        assert isinstance(dist.version, str)%0A        assert re.match(self.version_pattern, dist.version)%0A%0A    def test_retrieves_version_of_pip(self):%0A        %22%22%22%0A        Assume pip is installed and retrieve the version of pip.%0A        %22%22%22%0A        pip = importlib.import_module('pip')%0A        dist = importlib_metadata.Distribution.for_module(pip)%0A        assert isinstance(dist.version, str)%0A        assert re.match(self.version_pattern, dist.version)%0A

Add tests