tests/test_none.py @ 82a4a9aba8f6

Changed how 'unapplied' patch collection is calculated to handle guarded patches
author Iain Lowe <ilowe@taimma.com>
date Thu, 22 Apr 2010 11:49:12 -0400
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}'