summaryrefslogtreecommitdiff
path: root/mocker.py
diff options
context:
space:
mode:
Diffstat (limited to 'mocker.py')
-rw-r--r--mocker.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mocker.py b/mocker.py
index e146ae4..6189ccd 100644
--- a/mocker.py
+++ b/mocker.py
@@ -1780,6 +1780,10 @@ class SpecChecker(Task):
raise AssertionError("Specification is %s%s: %s" %
(self._method.__name__, spec, message))
+ def verify(self):
+ if not self._method:
+ raise AssertionError("Method not found in real specification")
+
def run(self, path):
if not self._method:
raise AssertionError("Method not found in real specification")