Module ImportFrom alias Import alias Import alias Import alias Expr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword TupleLoad Str Str Str Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr If BoolOpAnd CompareEq Call NameLoad NameLoad Num CompareLt Call NameLoad NameLoad Num body Assign NameStore Str orelse Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword TupleLoad Str Str Str Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr If BoolOpAnd CompareEq Call NameLoad NameLoad Num CompareLt Call NameLoad NameLoad Num body Assign NameStore Str orelse Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list decorator_list
N/A N/A TestCase N/A mock N/A platform N/A optparse N/A Test we're not giving the OptionParser invalid kwargs on old boxes.

Kind of hard to test properly because this code is stuck in an "if
__name__ === '__main__'" block so I'm just replicating that code here
and testing the needful.
 TestParser N/A TestCase N/A test_epilog_setting_old_python N/A N/A self N/A N/A N/A We don't set the epilog on old python <= 2.4 versions N/A mock_platform N/A N/A mock Mock platform N/A mock_python_version_tuple N/A N/A mock Mock return_value N/A 2 4 3 N/A N/A N/A mock_platform python_version_tuple return_value N/A mock_python_version_tuple N/A N/A major minor patch N/A N/A mock_platform python_version_tuple N/A N/A N/A N/A int major 2 N/A N/A int minor 5 N/A N/A py_platform old N/A N/A py_platform new N/A N/A N/A self assertEqual py_platform old N/A test_epilog_setting_old_python N/A N/A self N/A N/A N/A We set the epilog on new python >= 2.4 versions N/A mock_platform N/A N/A mock Mock platform N/A mock_python_version_tuple N/A N/A mock Mock return_value N/A 2 5 3 N/A N/A N/A mock_platform python_version_tuple return_value N/A mock_python_version_tuple N/A N/A major minor patch N/A N/A mock_platform python_version_tuple N/A N/A N/A N/A int major 2 N/A N/A int minor 5 N/A N/A py_platform old N/A N/A py_platform new N/A N/A N/A self assertEqual py_platform new N/A N/A