assertIsReadOnly

Asserts that the node is read-only.