| 12345678910111213141516171819202122 |
- # This file is part of h5py, a Python interface to the HDF5 library.
- #
- # http://www.h5py.org
- #
- # Copyright 2008-2013 Andrew Collette and contributors
- #
- # License: Standard 3-clause BSD; see "license.txt" for full license terms
- # and contributor agreement.
- """
- Tests the h5py.Dataset.dims.DimensionProxy class.
- """
- from .common import TestCase, make_name
- class TestItems(TestCase):
- def test_empty(self):
- """ no dimension scales -> empty list """
- dset = self.f.create_dataset(make_name(), (10,), "f4")
- self.assertEqual(dset.dims[0].items(), [])
|