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

Method test_serialize_item

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

Source from the content-addressed store, hash-verified

172 return _PickleLifoSerializationDiskQueue(self.qpath)
173
174 def test_serialize_item(self):
175 q = self.queue()
176 i = MyItem(name="foo")
177 q.push(i)
178 i2 = q.pop()
179 assert isinstance(i2, MyItem)
180 assert i == i2
181
182 def test_serialize_loader(self):
183 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