Skip to content

Commit

Permalink
Add test for propery MultiplexedPath.name
Browse files Browse the repository at this point in the history
  • Loading branch information
ap-- authored and FFY00 committed Mar 28, 2021
1 parent d094cac commit e05b43a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions importlib_resources/tests/test_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ def test_repr(self):
"MultiplexedPath('{}')".format(self.folder),
)

def test_name(self):
self.assertEqual(
MultiplexedPath(self.folder).name,
os.path.basename(self.folder),
)


class NamespaceReaderTest(unittest.TestCase):
site_dir = str(pathlib.Path(__file__).parent)
Expand Down

0 comments on commit e05b43a

Please sign in to comment.