Test marked property while serialization roundtrip

This commit is contained in:
Shadab Zafar 2016-07-22 11:45:14 +05:30
parent 32ef73e6b4
commit 08000c940c
1 changed files with 2 additions and 0 deletions

View File

@ -615,6 +615,7 @@ class TestSerialize:
def test_roundtrip(self):
sio = io.BytesIO()
f = tutils.tflow()
f.marked = True
f.request.content = bytes(bytearray(range(256)))
w = flow.FlowWriter(sio)
w.add(f)
@ -627,6 +628,7 @@ class TestSerialize:
f2 = l[0]
assert f2.get_state() == f.get_state()
assert f2.request == f.request
assert f2.marked
def test_load_flows(self):
r = self._treader()