tests/test_none.py @ 996d64681e55

I fixed my deployed `hg-prompt` thinking I had done it
in the version I pushed to bitbucket. I only noticed it
because I had to reinstall. :/
author Chris <doktorstick@gmail.com>
date Tue, 13 Sep 2016 16:09:05 -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}'