MCPcopy
hub / github.com/scrapy/scrapy / test_serialize

Method test_serialize

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

Source from the content-addressed store, hash-verified

151
152class LifoDiskQueueTestMixin:
153 def test_serialize(self):
154 q = self.queue()
155 q.push("a")
156 q.push(123)
157 q.push({"a": "dict"})
158 assert q.pop() == {"a": "dict"}
159 assert q.pop() == 123
160 assert q.pop() == "a"
161
162 test_nonserializable_object = nonserializable_object_test
163

Callers

nothing calls this directly

Calls 3

queueMethod · 0.45
pushMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected