MCPcopy Create free account
hub / github.com/Kitware/VTK / testConstruction

Method testConstruction

Common/DataModel/Testing/Python/TestCellGrid.py:16–22  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

14 print('foo')
15
16 def testConstruction(self):
17 g = dm.vtkCellGrid()
18 self.assertEqual(g.GetNumberOfCells(), 0)
19 self.assertEqual(g.GetShapeAttribute(), None)
20 bds = [0, 0, 0, 0, 0, 0]
21 g.GetBounds(bds)
22 self.assertEqual(bds, [1., -1., 1., -1., 1., -1.])
23
24 def testReader(self):
25 r = io.vtkCellGridReader()

Callers

nothing calls this directly

Calls 3

GetShapeAttributeMethod · 0.80
GetNumberOfCellsMethod · 0.45
GetBoundsMethod · 0.45

Tested by

no test coverage detected