def test_moduleInPath(self):
        """
        If the file in question is a module on the Python path, then it should
        properly import and return that module.
        """
        sample1 = runner.filenameToModule(util.sibpath(__file__, 'sample.py'))
        from twisted.trial.test import sample as sample2
        self.assertEqual(sample2, sample1)

        If the file in question is a module on the Python path, then it should
        properly import and return that module.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/trial/test/test_loader.py