tests/test_none.py @ 046811b7cb2d

Use format string from HGRC if available

This allows repository specific prompts (e.g. no status in large repos
or no incoming/outgoing on repos where the remote communication is too
slow).
author Oben Sonne <obensonne@googlemail.com>
date Thu, 27 Feb 2014 14:22:43 +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}'