MCPcopy Create free account
hub / github.com/PyTables/PyTables / test00_attributes

Method test00_attributes

tables/tests/test_carray.py:100–112  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

98 return shape
99
100 def test00_attributes(self):
101 if self.reopen:
102 self.h5file = tb.open_file(self.h5fname, "r")
103 obj = self.h5file.get_node("/carray1")
104
105 shape = self._get_shape()
106
107 self.assertEqual(obj.flavor, self.flavor)
108 self.assertEqual(obj.shape, shape)
109 self.assertEqual(obj.ndim, len(shape))
110 self.assertEqual(obj.chunkshape, self.chunkshape)
111 self.assertEqual(obj.nrows, shape[0])
112 self.assertEqual(obj.atom.type, self.type)
113
114 def test01_readCArray(self):
115 """Checking read() of chunked layout arrays."""

Callers

nothing calls this directly

Calls 2

_get_shapeMethod · 0.95
get_nodeMethod · 0.45

Tested by

no test coverage detected