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

Method test_view_by_itself

numpy/ma/tests/test_mrecords.py:362–367  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

360 return mrec, a, b, arr
361
362 def test_view_by_itself(self):
363 mrec = self._create_data()[0]
364 test = mrec.view()
365 assert_(isinstance(test, MaskedRecords))
366 assert_equal_records(test, mrec)
367 assert_equal_records(test._mask, mrec._mask)
368
369 def test_view_simple_dtype(self):
370 mrec, a, b, _ = self._create_data()

Callers

nothing calls this directly

Calls 4

_create_dataMethod · 0.95
assert_equal_recordsFunction · 0.90
assert_Function · 0.85
viewMethod · 0.45

Tested by

no test coverage detected