コード例 #1
0
ファイル: test_tools.py プロジェクト: BlaXpirit/xonsh
def test_logfile_opt_to_str():
    cases = [
        (None, ''),
        ('', ''),
        ('throwback.log', 'throwback.log'),
        ('/dev/null', '/dev/null')
    ]
    for inp, exp in cases:
        obs = logfile_opt_to_str(inp)
        assert exp == obs
コード例 #2
0
def test_logfile_opt_to_str(inp, exp):
    obs = logfile_opt_to_str(inp)
    assert exp == obs
コード例 #3
0
ファイル: test_tools.py プロジェクト: mitnk/xonsh
def test_logfile_opt_to_str(inp, exp):
    obs = logfile_opt_to_str(inp)
    assert exp == obs
コード例 #4
0
ファイル: test_tools.py プロジェクト: tbekolay/xonsh
def test_logfile_opt_to_str():
    cases = [(None, ''), ('', ''), ('throwback.log', 'throwback.log'),
             ('/dev/null', '/dev/null')]
    for inp, exp in cases:
        obs = logfile_opt_to_str(inp)
        yield assert_equal, exp, obs