Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call NameLoad SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword ListLoad NameLoad Str Expr Call NameLoad SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword ListLoad NameLoad Str keyword Str Expr Call AttributeLoad NameLoad attr keyword ListLoad NameLoad Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad CompareNotIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call NameLoad SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults kwarg body Raise Call NameLoad NameLoad decorator_list decorator_list For NameStore TupleLoad ListLoad ListLoad Str ListLoad Str body Expr Call NameLoad NameLoad Str AttributeLoad Call NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword ListLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword ListLoad NameLoad Str Expr Call AttributeLoad NameLoad attr keyword ListLoad NameLoad Str Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword ListLoad Str Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad Num Num body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword BinOpMult ListLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr keyword ListLoad Str keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword ListLoad Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword ListLoad NameLoad Str keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword ListLoad NameLoad Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore ListLoad TupleLoad NameLoad AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str Str TupleLoad Str Str body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call NameLoad SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str keyword Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad ListLoad NameLoad NameLoad body Assign NameStore Dict Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Lambda arguments args defaults Call AttributeLoad Call NameLoad attr NameLoad NameLoad If NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad orelse Return Call NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A unittest N/A os robot.errors DataError robot.tidy TidyCommandLine robot.utils.asserts assert_raises_with_msg assert_equal assert_true TestArgumentValidation N/A N/A unittest TestCase N/A test_valid_explicit_format N/A N/A self N/A N/A N/A N/A opts _ N/A N/A self _validate format txt N/A N/A assert_equal N/A opts N/A format TXT N/A test_valid_implicit_format N/A N/A self N/A N/A N/A N/A opts _ N/A N/A self _validate args N/A __file__ out.robot N/A N/A assert_equal N/A opts N/A format ROBOT N/A test_no_format N/A N/A self N/A N/A N/A N/A opts _ N/A N/A self _validate N/A N/A assert_equal N/A opts N/A format None N/A test_invalid_explicit_format N/A N/A self N/A N/A N/A N/A N/A self _validate format invalid error Invalid format 'INVALID'. N/A test_invalid_implicit_format N/A N/A self N/A N/A N/A N/A N/A self _validate args N/A __file__ y.inv error Invalid format 'INV'. N/A N/A N/A self _validate args N/A __file__ inv error Invalid format ''. N/A test_no_space_count N/A N/A self N/A N/A N/A N/A opts _ N/A N/A self _validate N/A N/A assert_true N/A spacecount opts N/A test_valid_space_count N/A N/A self N/A N/A N/A N/A opts _ N/A N/A self _validate spacecount 42 N/A N/A assert_equal N/A opts N/A spacecount 42 N/A test_invalid_space_count N/A N/A self N/A N/A N/A error --spacecount must be an integer greater than 1. N/A N/A N/A self _validate spacecount not a number error error N/A N/A N/A self _validate spacecount 1 error error N/A test_inplace_and_recursive_cannot_be_used_together N/A N/A self N/A N/A N/A N/A N/A self _validate inplace True recursive True error --recursive and --inplace can not be used together. N/A test_zero_argument_is_never_accepted N/A N/A self N/A N/A Stubbed N/A TidyCommandLine N/A _report_error N/A N/A self message N/A args N/A N/A N/A DataError message N/A N/A N/A args N/A N/A N/A --inplace N/A --recursive N/A N/A N/A assert_raises_with_msg DataError Expected at least 1 argument, got 0. N/A N/A Stubbed execute_cli args N/A test_default_mode_accepts_one_or_two_arguments N/A N/A self N/A N/A N/A N/A N/A self _validate args N/A __file__ N/A N/A N/A self _validate args N/A __file__ 2.txt N/A N/A N/A self _validate args N/A __file__ 2 3 error Default mode requires 1 or 2 arguments. N/A test_recursive_accepts_only_one_argument N/A N/A self N/A N/A N/A N/A N/A self _validate recursive True args N/A . .. error --recursive requires exactly one argument. N/A test_inplace_accepts_one_or_more_arguments N/A N/A self N/A N/A N/A count N/A range 1 10 N/A N/A N/A N/A self _validate inplace True args N/A N/A __file__ count N/A test_default_mode_requires_input_to_be_file N/A N/A self N/A N/A N/A error Default mode requires input to be a file. N/A N/A N/A self _validate args N/A . error error N/A N/A N/A self _validate args N/A non_existing.txt error error N/A test_inplace_requires_inputs_to_be_files N/A N/A self N/A N/A N/A error --inplace requires inputs to be files. N/A N/A N/A self _validate inplace True args N/A __file__ . error error N/A N/A N/A self _validate inplace True args N/A __file__ nonex.txt error error N/A test_recursive_requires_input_to_be_directory N/A N/A self N/A N/A N/A N/A N/A self _validate recursive True error --recursive requires input to be a directory. N/A test_line_separator N/A N/A self N/A N/A N/A N/A input expected N/A N/A None N/A os linesep N/A Native N/A os linesep N/A windows N/A UNIX N/A N/A N/A opts _ N/A N/A self _validate lineseparator input N/A N/A assert_equal N/A opts N/A lineseparator expected N/A test_invalid_line_separator N/A N/A self N/A N/A N/A N/A N/A self _validate lineseparator invalid error Invalid line separator 'invalid'. N/A _validate N/A N/A self inplace recursive format spacecount lineseparator args error N/A False False None None None N/A __file__ None N/A N/A opts N/A inplace recursive format spacecount lineseparator inplace recursive format spacecount lineseparator N/A validate N/A N/A N/A N/A N/A N/A N/A TidyCommandLine validate opts args N/A error N/A N/A N/A assert_raises_with_msg DataError error validate N/A N/A N/A validate N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main