aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)