MCPcopy Create free account
hub / github.com/numpy/numpy / testView

Method testView

tools/swig/test/testArray.py:260–264  ·  view source on GitHub ↗

Test Array2 view method

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

viewMethod · 0.45

Tested by

no test coverage detected