summaryrefslogtreecommitdiffstats
path: root/tests/features/steps/wrappers.py
diff options
context:
space:
mode:
authorDick Marinus <dick@mrns.nl>2017-04-25 07:37:53 +0200
committerDick Marinus <dick@mrns.nl>2017-04-25 07:37:53 +0200
commitbc47a07d92d3067ee0e943a8fcec0222f51378d0 (patch)
treef56a541140dee320cbd67d358d79c9db1bdd9d6a /tests/features/steps/wrappers.py
parent1e1d980ae2967a9fee14dfeb13a63cbe34769fd5 (diff)
behave pager wrapper
Diffstat (limited to 'tests/features/steps/wrappers.py')
-rw-r--r--tests/features/steps/wrappers.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/features/steps/wrappers.py b/tests/features/steps/wrappers.py
index eac7c830..5e3b22f1 100644
--- a/tests/features/steps/wrappers.py
+++ b/tests/features/steps/wrappers.py
@@ -13,3 +13,8 @@ def expect_exact(context, expected, timeout):
raise Exception('Expected:\n---\n{0!r}\n---\n\nActual:\n---\n{1!r}\n---'.format(
expected,
actual))
+
+
+def expect_pager(context, expected, timeout):
+ expect_exact(context, "{0}\r\n{1}{0}\r\n".format(
+ context.conf['pager_boundary'], expected), timeout=timeout)