aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_warnings.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-01-02 09:18:17 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2015-01-02 09:18:17 -0800
commit75341e185b48100b9acda696d173990e6eb4624c (patch)
tree4cd3eb4bc7d0fce4dc132b87daad44e00c2ccbc4 /tests/test_warnings.py
parentd27856c33df1cba86a3c1f61123106787bc35c0d (diff)
downloadcryptography-75341e185b48100b9acda696d173990e6eb4624c.tar.gz
cryptography-75341e185b48100b9acda696d173990e6eb4624c.tar.bz2
cryptography-75341e185b48100b9acda696d173990e6eb4624c.zip
get coverage up to 100%
Diffstat (limited to 'tests/test_warnings.py')
-rw-r--r--tests/test_warnings.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_warnings.py b/tests/test_warnings.py
index dd1b6a54..9946baa7 100644
--- a/tests/test_warnings.py
+++ b/tests/test_warnings.py
@@ -28,12 +28,14 @@ class TestDeprecated(object):
warning_class=PendingDeprecationWarning,
)
mod = sys.modules[mod.__name__]
+ mod.Z = 3
with warnings.catch_warnings(record=True) as log:
warnings.simplefilter("always", PendingDeprecationWarning)
warnings.simplefilter("always", DeprecationWarning)
assert mod.X == 1
assert mod.Y == 2
+ assert mod.Z == 3
[msg1, msg2] = log
assert msg1.category is DeprecationWarning
@@ -41,3 +43,5 @@ class TestDeprecated(object):
assert msg2.category is PendingDeprecationWarning
assert msg2.message.args == ("more deprecated text",)
+
+ assert "Y" in dir(mod)