MCPcopy
hub / github.com/scrapy/scrapy / test_simple

Method test_simple

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

Source from the content-addressed store, hash-verified

11 assert sorted(first) == sorted(second), msg
12
13 def test_simple(self):
14 class TestItem(Item):
15 name = Field()
16
17 i = TestItem()
18 i["name"] = "name"
19 assert i["name"] == "name"
20
21 def test_init(self):
22 class TestItem(Item):

Callers

nothing calls this directly

Calls 1

TestItemClass · 0.70

Tested by

no test coverage detected