From 7f2f09adfb03a91c033fdb842ae07876a91b8654 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Fri, 28 May 2021 16:57:59 -0400 Subject: [PATCH] Add a test to ensure the normalized name of an egg is reported correctly. Ref #320. --- tests/test_zip.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_zip.py b/tests/test_zip.py index 4279046d..8a4c9458 100644 --- a/tests/test_zip.py +++ b/tests/test_zip.py @@ -79,3 +79,7 @@ def test_files(self): for file in files('example'): path = str(file.dist.locate_file(file)) assert '.egg/' in path, path + + def test_normalized_name(self): + dist = distribution('example') + assert dist._normalized_name == 'example'