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

Method test_view_by_itself

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

Source from the content-addressed store, hash-verified

358 self.data = (mrec, a, b, arr)
359
360 def test_view_by_itself(self):
361 (mrec, a, b, arr) = self.data
362 test = mrec.view()
363 assert_(isinstance(test, MaskedRecords))
364 assert_equal_records(test, mrec)
365 assert_equal_records(test._mask, mrec._mask)
366
367 def test_view_simple_dtype(self):
368 (mrec, a, b, arr) = self.data

Callers

nothing calls this directly

Calls 3

assert_equal_recordsFunction · 0.90
assert_Function · 0.50
viewMethod · 0.45

Tested by

no test coverage detected