File: load-fail.test

package info (click to toggle)
atheist 0.20110402-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 1,332 kB
  • ctags: 902
  • sloc: python: 4,764; xml: 626; makefile: 113; cpp: 54; ansic: 5; sh: 5
file content (13 lines) | stat: -rw-r--r-- 510 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
# -*- mode: python; coding: utf-8 -*-

msg1 = "[EE] | AttributeError: 'module' object has no attribute 'missing_func'"

t1 = Test('$atheist $testdir/load-fail-by-missing-func.mtest',
         expected=1, save_stderr=True)
t1.post += FileContains(msg1, t1.stderr)


msg2 = "[EE] | IOError: [Errno 2] No such file or directory: './test/missing_path/missing_file.py'"
t2 = Test('$atheist $testdir/load-fail-by-missing-module.mtest',
         expected=1, save_stderr=True)
t2.post += FileContains(msg2, t2.stderr)