MCPcopy
hub / github.com/scrapy/scrapy / test_serialize_item

Method test_serialize_item

tests/test_squeues.py:89–95  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

87 return _PickleFifoSerializationDiskQueue(self.qpath, chunksize=self.chunksize)
88
89 def test_serialize_item(self):
90 q = self.queue()
91 i = MyItem(name="foo")
92 q.push(i)
93 i2 = q.pop()
94 assert isinstance(i2, MyItem)
95 assert i == i2
96
97 def test_serialize_loader(self):
98 q = self.queue()

Callers

nothing calls this directly

Calls 4

queueMethod · 0.95
MyItemClass · 0.70
pushMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected