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

Method test_serialize

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

Source from the content-addressed store, hash-verified

46
47class FifoDiskQueueTestMixin:
48 def test_serialize(self):
49 q = self.queue()
50 q.push("a")
51 q.push(123)
52 q.push({"a": "dict"})
53 assert q.pop() == "a"
54 assert q.pop() == 123
55 assert q.pop() == {"a": "dict"}
56
57 test_nonserializable_object = nonserializable_object_test
58

Callers

nothing calls this directly

Calls 3

queueMethod · 0.45
pushMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected