Module Expr Str ImportFrom alias alias alias alias Assign NameStore Call NameLoad Str keyword NameLoad Import alias alias alias Assign NameStore TupleLoad Num Num Num Num Assign NameStore TupleLoad Num Num BinOpPow Num Num BinOpSub BinOpPow Num Num Num BinOpPow Num Num BinOpAdd BinOpPow Num Num Num BinOpSub BinOpPow Num Num Num BinOpSub BinOpPow Num Num Num Assign NameStore BinOpAdd BinOpAdd Call NameLoad GeneratorExp UnaryOpUSub NameLoad comprehension NameStore Call NameLoad NameLoad TupleLoad Num NameLoad Assign NameStore BinOpMult Str Num Assign NameStore BinOpPow Num Num ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad vararg body Assign NameStore Call NameLoad NameLoad NameLoad For NameStore NameLoad body For NameStore NameLoad body Assign NameStore Call NameLoad BinOpMult NameLoad NameLoad If NameLoad body AugAssignMult NameStore NameLoad If CompareLt NameLoad NameLoad body Assign NameStore BinOpMult Str NameLoad orelse Assign NameStore NameLoad If NameLoad body Assign NameStore BinOpAdd TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad orelse Assign NameStore BinOpAdd TupleLoad NameLoad NameLoad NameLoad NameLoad TryExcept body Expr Call NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad AttributeLoad NameLoad attr body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults vararg body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Num Num Num Num Expr Call AttributeLoad NameLoad attr Str Num Num Expr Call AttributeLoad NameLoad attr Str Num Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Num Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list FunctionDef arguments args defaults body Expr Call NameLoad NameLoad TryExcept body Import alias handlers ExceptHandler type NameLoad body Return Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore NameStore Call NameLoad BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str If NameLoad body Print Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num NameLoad NameLoad Num Num Num Num If NameLoad body Print Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num NameLoad NameLoad Num Num If NameLoad body Print Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num NameLoad NameLoad If NameLoad body Print Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If NameLoad body Print Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If NameLoad body Print Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If NameLoad body Print Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If NameLoad body Print Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Num If NameLoad body Print Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Num Num If NameLoad body Print Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If NameLoad body Print Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If NameLoad body Print Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If NameLoad body Print Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If NameLoad body Print Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If NameLoad body Print Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call NameLoad BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Import alias TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Print BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Import alias Import alias Assign NameStore AttributeLoad NameLoad attr TryExcept body Assign NameStore BinOpAdd ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return NameLoad Return NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A Test script for the imageop module.  This has the side
   effect of partially testing the imgfile module as well.
   Roger E. Masse
 test.test_support verbose unlink import_module run_unittest N/A imageop N/A import_module imageop deprecated True N/A uu os unittest N/A SIZES N/A 1 2 3 4 N/A _VALUES N/A 1 2 N/A 2 10 N/A N/A 2 15 1 N/A 2 15 N/A N/A 2 15 1 N/A N/A 2 31 2 N/A N/A 2 31 1 N/A VALUES N/A N/A N/A tuple N/A N/A x N/A x N/A reversed _VALUES N/A 0 _VALUES N/A AAAAA N/A A 1024 N/A MAX_LEN N/A 2 20 InputValidationTests N/A N/A unittest TestCase N/A _check N/A N/A self name size N/A None extra N/A N/A func N/A getattr imageop name N/A height VALUES N/A N/A width VALUES N/A N/A strlen N/A abs N/A width height N/A size N/A N/A strlen size N/A N/A strlen MAX_LEN N/A N/A data N/A A strlen N/A N/A data AAAAA N/A size N/A N/A arguments N/A N/A data size width height extra N/A N/A arguments N/A N/A data width height extra N/A N/A N/A N/A func arguments N/A N/A N/A N/A ValueError N/A imageop error N/A N/A N/A check_size N/A N/A self name N/A extra N/A N/A size SIZES N/A N/A N/A N/A self _check name size extra N/A check N/A N/A self name N/A extra N/A N/A N/A N/A self _check name None extra N/A test_input_validation N/A N/A self N/A N/A N/A N/A N/A self check_size crop 0 0 0 0 N/A N/A N/A self check_size scale 1 0 N/A N/A N/A self check_size scale -1 -1 N/A N/A N/A self check_size tovideo N/A N/A N/A self check grey2mono 128 N/A N/A N/A self check grey2grey4 N/A N/A N/A self check grey2grey2 N/A N/A N/A self check dither2mono N/A N/A N/A self check dither2grey2 N/A N/A N/A self check mono2grey 0 0 N/A N/A N/A self check grey22grey N/A N/A N/A self check rgb2rgb8 N/A N/A N/A self check rgb82rgb N/A N/A N/A self check rgb2grey N/A N/A N/A self check grey2rgb N/A N/A test_main N/A N/A N/A N/A N/A N/A run_unittest InputValidationTests N/A N/A N/A imgfile N/A N/A N/A ImportError N/A N/A N/A N/A N/A uu decode N/A get_qualified_path N/A N/A testrgb N/A os extsep uue N/A N/A test N/A os extsep rgb N/A N/A image width height N/A getimage N/A N/A test N/A os extsep rgb N/A verbose N/A N/A crop N/A newimage N/A N/A imageop crop image 4 width height 0 0 1 1 N/A verbose N/A N/A scale N/A scaleimage N/A N/A imageop scale image 4 width height 1 1 N/A verbose N/A N/A tovideo N/A videoimage N/A N/A imageop tovideo image 4 width height N/A verbose N/A N/A rgb2rgb8 N/A greyimage N/A N/A imageop rgb2rgb8 image width height N/A verbose N/A N/A rgb82rgb N/A image N/A N/A imageop rgb82rgb greyimage width height N/A verbose N/A N/A rgb2grey N/A greyimage N/A N/A imageop rgb2grey image width height N/A verbose N/A N/A grey2rgb N/A image N/A N/A imageop grey2rgb greyimage width height N/A verbose N/A N/A grey2mono N/A monoimage N/A N/A imageop grey2mono greyimage width height 0 N/A verbose N/A N/A mono2grey N/A greyimage N/A N/A imageop mono2grey monoimage width height 0 255 N/A verbose N/A N/A dither2mono N/A monoimage N/A N/A imageop dither2mono greyimage width height N/A verbose N/A N/A grey2grey4 N/A grey4image N/A N/A imageop grey2grey4 greyimage width height N/A verbose N/A N/A grey2grey2 N/A grey2image N/A N/A imageop grey2grey2 greyimage width height N/A verbose N/A N/A dither2grey2 N/A grey2image N/A N/A imageop dither2grey2 greyimage width height N/A verbose N/A N/A grey42grey N/A greyimage N/A N/A imageop grey42grey grey4image width height N/A verbose N/A N/A grey22grey N/A image N/A N/A imageop grey22grey grey2image width height N/A N/A unlink N/A N/A test N/A os extsep rgb N/A getimage N/A N/A name N/A N/A N/A return a tuple consisting of
       image (in 'imgfile' format) width and height
     N/A imgfile N/A N/A N/A sizes N/A N/A imgfile getsizes name N/A N/A N/A N/A imgfile error N/A N/A name N/A get_qualified_path name N/A sizes N/A N/A imgfile getsizes name N/A verbose N/A N/A N/A imgfile opening test image: %s, sizes: %s N/A name N/A str sizes N/A image N/A N/A imgfile read name N/A N/A image N/A sizes N/A 0 N/A sizes N/A 1 N/A get_qualified_path N/A N/A name N/A N/A N/A  return a more qualified path to name N/A sys N/A os N/A path N/A sys path N/A N/A N/A path N/A N/A N/A N/A N/A os path dirname __file__ path N/A N/A N/A NameError N/A N/A N/A dir path N/A N/A fullname N/A N/A N/A os path join dir name N/A N/A N/A N/A os path exists fullname N/A N/A fullname N/A name N/A N/A N/A __name__ __main__ N/A N/A N/A test_main