aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_wheel.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/tests/test_wheel.py')
-rw-r--r--setuptools/tests/test_wheel.py36
1 files changed, 36 insertions, 0 deletions
diff --git a/setuptools/tests/test_wheel.py b/setuptools/tests/test_wheel.py
index 408c3576..b6be6f1f 100644
--- a/setuptools/tests/test_wheel.py
+++ b/setuptools/tests/test_wheel.py
@@ -444,6 +444,42 @@ WHEEL_INSTALL_TESTS = (
'''),
),
+ dict(
+ id='data_in_package',
+ file_defs={
+ 'foo': {
+ '__init__.py': '',
+ 'data_dir': {
+ 'data.txt': DALS(
+ '''
+ Some data...
+ '''
+ ),
+ }
+ }
+ },
+ setup_kwargs=dict(
+ packages=['foo'],
+ data_files=[('foo/data_dir', ['foo/data_dir/data.txt'])],
+ ),
+ install_tree=DALS(
+ '''
+ foo-1.0-py{py_version}.egg/
+ |-- EGG-INFO/
+ | |-- DESCRIPTION.rst
+ | |-- PKG-INFO
+ | |-- RECORD
+ | |-- WHEEL
+ | |-- metadata.json
+ | |-- top_level.txt
+ |-- foo/
+ | |-- __init__.py
+ | |-- data_dir/
+ | | |-- data.txt
+ '''
+ ),
+ ),
+
)
@pytest.mark.parametrize(