bdd: Fix clipboard_contains_multiline

This commit is contained in:
Florian Bruhin 2016-05-08 22:09:19 +02:00
parent 59ec5fa947
commit 165504c1f2

View File

@ -419,7 +419,7 @@ def clipboard_contains(quteproc, httpbin, what, content):
@bdd.then(bdd.parsers.parse('the clipboard should contain:\n{content}'))
def clipboard_contains_multiline(quteproc, httpbin, content):
expected = textwrap.dedent(content).replace('(port)', httpbin.port)
expected = textwrap.dedent(content).replace('(port)', str(httpbin.port))
quteproc.wait_for(message='Setting fake clipboard: {}'.format(
json.dumps(expected)))