diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2011-01-26 14:52:03 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2011-01-26 14:52:03 +1300 |
commit | 29d800767802ffc17c3577aaebfaf59221e0fb7e (patch) | |
tree | caa6da763476c7e9384c7eb0a77062814eb37980 /test/test_console.py | |
parent | 7983dbb26a023db149a6e3e91f19fc7171680534 (diff) | |
download | mitmproxy-29d800767802ffc17c3577aaebfaf59221e0fb7e.tar.gz mitmproxy-29d800767802ffc17c3577aaebfaf59221e0fb7e.tar.bz2 mitmproxy-29d800767802ffc17c3577aaebfaf59221e0fb7e.zip |
Add serialization hooks to flows and flow component objects.
Diffstat (limited to 'test/test_console.py')
-rw-r--r-- | test/test_console.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_console.py b/test/test_console.py index cda61bd5..399cc485 100644 --- a/test/test_console.py +++ b/test/test_console.py @@ -196,6 +196,15 @@ class uFlow(libpry.AutoTree): f.backup() f.revert() + def test_getset_state(self): + f = tflow() + state = f.get_state() + assert f == console.ConsoleFlow.from_state(state) + f.response = tresp() + f.request = f.response.request + state = f.get_state() + assert f == console.ConsoleFlow.from_state(state) + def test_simple(self): f = tflow() assert f.get_text() |