def test_dottedNames(self):
        """
        Verify that the walkModules APIs will give us back subpackages, not just
        subpackages.
        """
        self.assertEqual(
            modules.getModule('twisted.python'),
            self.findByIteration("twisted.python",
                                 where=modules.getModule('twisted')))

        Verify that the walkModules APIs will give us back subpackages, not just
        subpackages.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_modules.py