Module Expr Str ImportFrom alias Import alias ImportFrom alias alias alias Assign NameStore Call NameLoad Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str If CompareLt Call NameLoad NameLoad Num body Assign NameStore BinOpAdd BinOpAdd SubscriptLoad NameLoad Index Num Str SubscriptLoad NameLoad Slice Num Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpDiv Num Num Num Str Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpDiv Num Num Num Str decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad Num body For NameStore TupleLoad BinOpDiv Num Num Num Num Num BinOpDiv Num Num Num body For NameStore TupleLoad NameLoad BinOpDiv Num NameLoad UnaryOpUSub NameLoad BinOpDiv Num NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Num Num BinOpAdd Str BinOpMult Str Num Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd Str BinOpMult Str Num Num Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num NameLoad TryExcept body Expr Call NameLoad NameLoad Num handlers ExceptHandler type NameLoad body Pass orelse Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list FunctionDef arguments args defaults body Expr Call NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
   Tests for fpformat module
   Nick Mathewson
 test.test_support run_unittest N/A unittest fpformat fix sci NotANumber N/A StringType N/A type FpformatTest N/A N/A unittest TestCase N/A checkFix N/A N/A self n digits N/A N/A N/A result N/A fix n digits N/A N/A isinstance n StringType N/A N/A n N/A repr n N/A expected N/A %.*f N/A digits N/A float n N/A N/A N/A self assertEquals result expected N/A checkSci N/A N/A self n digits N/A N/A N/A result N/A sci n digits N/A N/A isinstance n StringType N/A N/A n N/A repr n N/A expected N/A %.*e N/A digits N/A float n N/A N/A num exp N/A N/A expected split e N/A N/A N/A len exp 4 N/A N/A exp N/A N/A N/A exp N/A 0 0 N/A exp N/A 1 N/A expected N/A %se%s N/A num exp N/A N/A N/A self assertEquals result expected N/A test_basic_cases N/A N/A self N/A N/A N/A N/A N/A self assertEquals N/A fix N/A 100.0 3 3 33.333 N/A N/A N/A self assertEquals N/A sci N/A 100.0 3 3 3.333e+001 N/A test_reasonable_values N/A N/A self N/A N/A N/A d N/A range 7 N/A N/A val N/A N/A 1000.0 3 1000 1000.0 0.002 N/A 1.0 3 10000000000.0 N/A N/A realVal N/A val N/A 1.0 val N/A val N/A -1.0 val N/A N/A N/A N/A self checkFix realVal d N/A N/A N/A self checkSci realVal d N/A test_failing_values N/A N/A self N/A N/A N/A N/A N/A self assertEquals N/A fix 1.0 1000 N/A 1. N/A 0 1000 N/A N/A N/A self assertEquals N/A sci N/A 1 N/A 0 1000 0 1e+1000 N/A yacht Throatwobbler Mangrove N/A N/A N/A self assertEquals N/A fix yacht 10 yacht N/A N/A N/A N/A sci yacht 10 N/A N/A N/A NotANumber N/A N/A N/A N/A N/A N/A self fail No exception on non-numeric sci N/A N/A test_main N/A N/A N/A N/A N/A N/A run_unittest FpformatTest N/A N/A N/A __name__ __main__ N/A N/A N/A test_main