aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_interfaces.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-10-21 23:57:04 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-10-21 23:57:04 -0700
commit67a4dd1a2227af1a3461c92edc5316ab9fe7a942 (patch)
tree07c663748b8ea5cc21b90960e2a695c90eca6a69 /tests/test_interfaces.py
parent15dde27e5e14270f8e8837abe26c4ea1710bf053 (diff)
downloadcryptography-67a4dd1a2227af1a3461c92edc5316ab9fe7a942.tar.gz
cryptography-67a4dd1a2227af1a3461c92edc5316ab9fe7a942.tar.bz2
cryptography-67a4dd1a2227af1a3461c92edc5316ab9fe7a942.zip
fix up the line coverage
Diffstat (limited to 'tests/test_interfaces.py')
-rw-r--r--tests/test_interfaces.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_interfaces.py b/tests/test_interfaces.py
index e24f4db2..0c72ad33 100644
--- a/tests/test_interfaces.py
+++ b/tests/test_interfaces.py
@@ -28,7 +28,7 @@ class TestVerifyInterface(object):
class SimpleInterface(object):
@abc.abstractmethod
def method(self):
- pass
+ """A simple method"""
@register_interface(SimpleInterface)
class NonImplementer(object):
@@ -42,12 +42,12 @@ class TestVerifyInterface(object):
class SimpleInterface(object):
@abc.abstractmethod
def method(self, a):
- pass
+ """Method with one argument"""
@register_interface(SimpleInterface)
class NonImplementer(object):
def method(self):
- pass
+ """Method with no arguments"""
with pytest.raises(InterfaceNotImplemented):
verify_interface(SimpleInterface, NonImplementer)
@@ -57,12 +57,12 @@ class TestVerifyInterface(object):
class SimpleInterface(object):
@abc.abstractproperty
def property(self):
- pass
+ """An abstract property"""
@register_interface(SimpleInterface)
class NonImplementer(object):
@property
def property(self):
- pass
+ """A concrete property"""
verify_interface(SimpleInterface, NonImplementer)