tests/test_none.py @ dc481ce24b60

fix error with hg versions <4.3 (regression from commit:4dddc56)
author Sascha Nemecek <nemecek@wienfluss.net>
date Tue, 19 Dec 2017 14:53:00 +0100
parents 22fefa553086
children (none)
'''Test output without keywords.'''

from nose import *
from util import *


@with_setup(setup_sandbox, teardown_sandbox)
def test_blank():
    output = prompt(fs='')
    assert output == ''


@with_setup(setup_sandbox, teardown_sandbox)
def test_text():
    output = prompt(fs='test one two three')
    assert output == 'test one two three'


@with_setup(setup_sandbox, teardown_sandbox)
def test_invalid_keyword():
    output = prompt(fs='{invalidkeyword}')
    assert output == '{invalidkeyword}'