<s> from nose . tools import * <EOL> from maglica . util import * <EOL> def check_args_ok_test ( ) : <EOL> args = { <EOL> "<STR_LIT:image>" : "<STR_LIT:foo>" , <EOL> "<STR_LIT>" : "<STR_LIT:bar>" , <EOL> } <EOL> options = { <EOL> "<STR_LIT>" : [ "<STR_LIT:image>" , "<STR_LIT>" ] , <EOL> "<STR_LIT>" : [ ] , <EOL> } <EOL> ok_ ( check_args ( args , options ) ) <EOL> @ raises ( MaglicaCliException ) <EOL> def check_args_except_test ( ) : <EOL> args = { <EOL> "<STR_LIT>" : "<STR_LIT:foo>" , <EOL> } <EOL> options = { <EOL> "<STR_LIT>" : [ "<STR_LIT:image>" , "<STR_LIT>" ] , <EOL> "<STR_LIT>" : [ ] , <EOL> } <EOL> check_args ( args , options ) </s>
