def METHOD_NAME(self):
    MyView = namedview("MyView", ["a", "b"])
    self.assertTrue(issubclass(MyView, NamedViewBase))
    self.assertEqual(MyView.__name__, "MyView")
    self.assertEqual(MyView.get_fields(), ("a", "b"))
    value = np.array([1, 2])
    view = MyView(value)
    self.assertEqual(view.a, 1)
    self.assertEqual(view.b, 2)
    self.assertTrue(is_same_array(value, np.asarray(view)))
    self.assertTrue(is_same_array(value, view[:]))
    view.a = 10
    self.assertEqual(value[0], 10)
    value[1] = 100
    self.assertEqual(view.b, 100)
    view[:] = 3
    np.testing.assert_equal(value, [3, 3])
    self.assertEqual(repr(view), "MyView(a=3, b=3)")
    self.assertEqual(str(view), repr(view))
    with self.assertRaisesRegex(AttributeError, ".*('a', 'b').*"):
        view.c = 42