Skip to content

Commit 1ffbf65

Browse files
ap--jaraco
authored andcommitted
Add test for propery MultiplexedPath.name
1 parent 0e39923 commit 1ffbf65

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

importlib_resources/tests/test_reader.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ def test_repr(self):
8383
"MultiplexedPath('{}')".format(self.folder),
8484
)
8585

86+
def test_name(self):
87+
self.assertEqual(
88+
MultiplexedPath(self.folder).name,
89+
os.path.basename(self.folder),
90+
)
91+
8692

8793
class NamespaceReaderTest(unittest.TestCase):
8894
site_dir = str(pathlib.Path(__file__).parent)

0 commit comments

Comments
 (0)