Debian Codegraph @

testsuite/tests/index/bad-license-too-long/test.py

raw
1 """
2 Test that long licenses are rejected
3 """
4
5 from drivers.alr import run_alr
6 from drivers.asserts import assert_match
7
8
9 p = run_alr('show', 'hello_world',
10 complain_on_error=False, debug=False, quiet=True)
11 assert_match('.*Loading .*hello_world-0.1.0.toml:'
12 '.*licenses:.*License expression too long \(must be no more than [0-9]* chars\)\n',
13 p.out)
14
15 print('SUCCESS')