MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_nonassignable

Method test_nonassignable

test/ext/test_hybrid.py:761–766  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

759 return A
760
761 def test_nonassignable(self):
762 A = self._fixture(False)
763 a1 = A(_value=5)
764 assert_raises_message(
765 AttributeError, "can't set attribute", setattr, a1, "value", 10
766 )
767
768 def test_nondeletable(self):
769 A = self._fixture(False)

Callers

nothing calls this directly

Calls 3

_fixtureMethod · 0.95
assert_raises_messageFunction · 0.90
AClass · 0.70

Tested by

no test coverage detected