test_state: assert popped value is the actual value (#1906)

This commit is contained in:
Masen Furer 2023-10-02 17:43:05 -07:00 committed by GitHub
parent c131f76e33
commit 43cc8d4f6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1658,7 +1658,7 @@ class BackgroundTaskState(State):
async with self:
# Methods on ImmutableMutableProxy should return their wrapped return value.
assert self.dict_list.pop("foo") is not None
assert self.dict_list.pop("foo") == [1, 2, 3]
self.order.append("background_task:stop")
self.other() # direct calling event handlers works in context