MCPcopy Index your code
hub / github.com/numpy/numpy / testView

Method testView

tools/swig/test/testArray.py:263–267  ·  view source on GitHub ↗

Test Array2 view method

(self)

Source from the content-addressed store, hash-verified

261 self.assertTrue(str(self.array2) == result)
262
263 def testView(self):
264 "Test Array2 view method"
265 a = self.array2.view()
266 self.assertTrue(isinstance(a, np.ndarray))
267 self.assertTrue(len(a) == self.nrows)
268
269######################################################################
270

Callers

nothing calls this directly

Calls 1

viewMethod · 0.45

Tested by

no test coverage detected