File: runtime.py

package info (click to toggle)
python-wsme 0.6-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 956 kB
  • ctags: 1,831
  • sloc: python: 8,452; makefile: 138
file content (9 lines) | stat: -rw-r--r-- 278 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
from wsme.exc import MissingArgument


def check_arguments(funcdef, args, kw):
    """Check if some arguments are missing"""
    assert len(args) == 0
    for arg in funcdef.arguments:
        if arg.mandatory and arg.name not in kw:
            raise MissingArgument(arg.name)