MCPcopy
hub / github.com/scrapy/scrapy / test_raise_getattr

Method test_raise_getattr

tests/test_item.py:75–81  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

73 assert i._private == "test"
74
75 def test_raise_getattr(self):
76 class TestItem(Item):
77 name = Field()
78
79 i = TestItem()
80 with pytest.raises(AttributeError):
81 i.name
82
83 def test_raise_setattr(self):
84 class TestItem(Item):

Callers

nothing calls this directly

Calls 1

TestItemClass · 0.70

Tested by

no test coverage detected