diff options
author | Maximilian Hils <git@maximilianhils.com> | 2017-08-05 02:34:00 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2017-08-05 02:34:00 +0200 |
commit | e30750bf9e067692d4b5335a916030da9fc1b76a (patch) | |
tree | b028a25287d79ef0bb28f65dfa9330a1a323cb12 /test | |
parent | 819a85df743b420000617393cfec6e565fcee06d (diff) | |
download | mitmproxy-e30750bf9e067692d4b5335a916030da9fc1b76a.tar.gz mitmproxy-e30750bf9e067692d4b5335a916030da9fc1b76a.tar.bz2 mitmproxy-e30750bf9e067692d4b5335a916030da9fc1b76a.zip |
fix optmanager equality check and deepcopy
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/test_optmanager.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/mitmproxy/test_optmanager.py b/test/mitmproxy/test_optmanager.py index fe72e6bb..d9b93227 100644 --- a/test/mitmproxy/test_optmanager.py +++ b/test/mitmproxy/test_optmanager.py @@ -73,6 +73,11 @@ def test_required_int(): o.parse_setval("required_int", None) +def test_deepcopy(): + o = TD() + copy.deepcopy(o) + + def test_options(): o = TO() assert o.keys() == {"bool", "one", "two", "required_int"} @@ -244,6 +249,7 @@ def test_serialize(): o2 = TD2() optmanager.load(o2, data) assert o2 == o + assert not o == 42 t = """ unknown: foo |