(self)
| 151 | |
| 152 | class 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 |