File: test_script_config_source.py

package info (click to toggle)
python-milc 1.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 788 kB
  • sloc: python: 1,868; sh: 55; makefile: 3
file content (13 lines) | stat: -rw-r--r-- 444 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
from .common import check_assert, check_command, check_returncode


def test_config_source():
    result = check_command('./config_source')
    check_returncode(result)
    check_assert(result, result.stdout == 'Hello, World, from None!\n')


def test_config_source_name():
    result = check_command('./config_source', '--name', 'World')
    check_returncode(result)
    check_assert(result, result.stdout == 'Hello, World, from argument!\n')