tests/test_none.py @ 4dddc56c4c4b

Use @registrar.command where available (hg 3.7+).
author Kevin Bullock <kbullock@ringworld.org>
date Fri, 20 Oct 2017 10:51:53 -0500
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}'