aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2017-08-07 16:22:33 +0200
committerGitHub <noreply@github.com>2017-08-07 16:22:33 +0200
commit6d9b5b0c062126d2ac47fa50795c7d560321e0f7 (patch)
tree199ed51447f0daa32d3f21ace18b0f3585b88c0a /test
parentcf135eab4464d8f545343267a1ff4fe45771e8a5 (diff)
parente30750bf9e067692d4b5335a916030da9fc1b76a (diff)
downloadmitmproxy-6d9b5b0c062126d2ac47fa50795c7d560321e0f7.tar.gz
mitmproxy-6d9b5b0c062126d2ac47fa50795c7d560321e0f7.tar.bz2
mitmproxy-6d9b5b0c062126d2ac47fa50795c7d560321e0f7.zip
Merge pull request #2502 from mhils/optmanager
Fix optmanager equality check and deepcopy
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/test_optmanager.py6
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