diff options
| author | Aldo Cortesi <aldo@nullcube.com> | 2011-02-20 09:55:42 +1300 | 
|---|---|---|
| committer | Aldo Cortesi <aldo@nullcube.com> | 2011-02-20 09:55:42 +1300 | 
| commit | d7ace1ce9ef3832fc766c25067f8cd23fea62d8a (patch) | |
| tree | 3e1e646f5aca7c7be52ad42fde9ecb17ee25a774 /test/test_flow.py | |
| parent | 9c5c3c2b1adfe9e8d79742a1bd5080b3fc1fdcde (diff) | |
| download | mitmproxy-d7ace1ce9ef3832fc766c25067f8cd23fea62d8a.tar.gz mitmproxy-d7ace1ce9ef3832fc766c25067f8cd23fea62d8a.tar.bz2 mitmproxy-d7ace1ce9ef3832fc766c25067f8cd23fea62d8a.zip | |
Bump unit tests for flow.py and dump.py
Diffstat (limited to 'test/test_flow.py')
| -rw-r--r-- | test/test_flow.py | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/test/test_flow.py b/test/test_flow.py index eb6a7c8c..168b4e74 100644 --- a/test/test_flow.py +++ b/test/test_flow.py @@ -51,6 +51,14 @@ class uFlow(libpry.AutoTree):          state = f.get_state()           assert f == flow.Flow.from_state(state) +        f2 = utils.tflow() +        f2.error = proxy.Error(f, "e2") +        assert not f == f2 +        f.load_state(f2.get_state()) +        assert f == f2 + + +      def test_kill(self):          f = utils.tflow()          f.request = utils.treq() | 
