diff options
Diffstat (limited to 'library/python/runtime_py3/test/test_resources.py')
-rw-r--r-- | library/python/runtime_py3/test/test_resources.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/library/python/runtime_py3/test/test_resources.py b/library/python/runtime_py3/test/test_resources.py index 75c1eb3549..0bf70f8c54 100644 --- a/library/python/runtime_py3/test/test_resources.py +++ b/library/python/runtime_py3/test/test_resources.py @@ -111,3 +111,14 @@ def test_files_read_text(package, resource, expected): ) def test_files_iterdir(package, expected): assert tuple(resource.name for resource in ir.files(package).iterdir()) == expected + + +@pytest.mark.parametrize( + "package, expected", + ( + ("resources", ("foo.txt", "submodule")), + ("resources.submodule", ("bar.txt",)), + ), +) +def test_files_iterdir_with_sort(package, expected): + assert tuple(resource.name for resource in sorted(ir.files(package).iterdir())) == expected |