bdd: Handle \n when checking clipboard contents.

This commit is contained in:
Florian Bruhin 2015-11-26 22:32:01 +01:00
parent 23068e9679
commit dbdedf74c0

View File

@ -354,6 +354,7 @@ def check_open_tabs(quteproc, tabs):
def clipboard_contains(qapp, httpbin, what, content):
mode = _clipboard_mode(qapp, what)
expected = content.replace('(port)', str(httpbin.port))
expected = expected.replace('\\n', '\n')
data = qapp.clipboard().text(mode=mode)
assert data == expected