Home
last modified time | relevance | path

Searched refs:is_resource (Results 1 – 7 of 7) sorted by relevance

/third_party/python/Lib/test/test_importlib/
Dtest_resource.py18 self.assertTrue(resources.is_resource(self.data, 'binary.file'))
21 self.assertFalse(resources.is_resource(self.data, 'not-a-file'))
25 self.assertFalse(resources.is_resource(self.data, 'subdirectory'))
67 self.assertTrue(resources.is_resource(package, 'B'))
73 self.assertFalse(resources.is_resource(package, 'D'))
79 self.assertFalse(resources.is_resource(package, 'Z'))
97 self.assertFalse(resources.is_resource(module, 'A'))
105 self.assertTrue(resources.is_resource(submodule, 'binary.file'))
109 resources.is_resource('ziptestdata.subdirectory', 'binary.file')
184 c = resources.is_resource('ziptestdata', 'binary.file')
[all …]
Dtest_abc.py319 def is_resource(self, *args, **kwargs): member in ResourceReader
320 return super().is_resource(*args, **kwargs)
340 self.ins.is_resource('dummy_file')
Dutil.py441 def is_resource(self, path_): member in create_package.Reader
/third_party/python/Lib/importlib/
Dresources.py145 def is_resource(package: Package, name: str) -> bool: function
154 return reader.is_resource(name)
Dabc.py341 def is_resource(self, path: Text) -> bool: member in ResourceReader
438 def is_resource(self, path): member in TraversableResources
Dreaders.py39 def is_resource(self, path): member in ZipReader
/third_party/python/Doc/library/
Dimportlib.rst542 .. abstractmethod:: is_resource(name)
552 acceptable to return names for which :meth:`is_resource` would
1026 .. function:: is_resource(package, name)