Ticket #23778 -- Add a code snippet in the advanced testing documentatio...

...n showing how to run tests outside de test runner.
As a matter of general Python best practice for scripts, I think everything from this line forwards should be enclosed in an `if __name__ == '__main__':` conditional.