@@ -0,0 +1,1085 @@
+import os%0A%0Afrom . import chdir_fixture  # NOQA%0Afrom . import TEST_SAMPLE_DATA%0A%0Adef test_uri_property_when_using_relpath(chdir_fixture):  # NOQA%0A%0A    from dtoolcore import ProtoDataSet, generate_admin_metadata%0A    from dtoolcore import DataSet%0A    from dtoolcore.utils import generate_identifier%0A    from dtoolcore.storagebroker import DiskStorageBroker%0A%0A    name = %22my_dataset%22%0A    admin_metadata = generate_admin_metadata(name)%0A    dest_uri = DiskStorageBroker.generate_uri(%0A        name=name,%0A        uuid=admin_metadata%5B%22uuid%22%5D,%0A        prefix=%22.%22)%0A%0A    sample_data_path = os.path.join(TEST_SAMPLE_DATA)%0A    local_file_path = os.path.join(sample_data_path, 'tiny.png')%0A%0A    # Create a minimal dataset%0A    proto_dataset = ProtoDataSet(%0A        uri=dest_uri,%0A        admin_metadata=admin_metadata,%0A        config_path=None)%0A    proto_dataset.create()%0A    proto_dataset.put_item(local_file_path, 'tiny.png')%0A%0A    proto_dataset.freeze()%0A%0A%0A    dataset = DataSet.from_uri(%22./my_dataset%22)%0A    expected_uri = %22file://%22 + os.path.abspath(%22my_dataset%22)%0A    assert dataset.uri == expected_uri%0A

Add test for bug 2