File: test_script_custom_logger.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 (8 lines) | stat: -rw-r--r-- 335 bytes parent folder | download
1
2
3
4
5
6
7
8
from .common import check_assert, check_command, check_returncode


def test_custom_logger():
    result = check_command('./custom_logger')
    check_returncode(result)
    check_assert(result, 'INFO:custom_logger:Hello Info World!' in result.stdout)
    check_assert(result, 'DEBUG:custom_logger:Hello Debug World!' in result.stdout)