Ejemplo n.º 1
0
 def test_success(self):
     with source_util.create_modules(u'dummy') as mapping:
         self.assertTrue(hasattr(_bootstrap._file_path_hook(mapping[u'.root']),
                              u'find_module'))
Ejemplo n.º 2
0
 def test_empty_string(self):
     # The empty string represents the cwd.
     self.assertTrue(hasattr(_bootstrap._file_path_hook(u''), u'find_module'))
Ejemplo n.º 3
0
 def hook(self, entry):
     return _bootstrap._file_path_hook(entry)