File: params.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 (11 lines) | stat: -rw-r--r-- 318 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
# -*- mode: python; coding:utf-8 -*-

task = "Test('ls', not_exists=True)"

t = Test('$atheist -s "%s"' % task,
         save_stderr=True,
         shell=True,
         desc="Checking invalid Test keys",
         must_fail=True)
t.post += FileContains("AssertionError: 'not_exists' is not a valid keyword", t.stderr)