from windmill.authoring import setup_module, teardown_module

# python_tests are for tests that can be done without a browser
@@ -1,66 +1,4 @@
-from windmill.authoring import setup_module, teardown_module%0A%0A
 # py
@@ -56,8 +56,866 @@
  browser
+%0A%0Aimport windmill%0Afrom windmill.bin import admin_lib%0Afrom time import sleep%0A%0Adef setup_module(module):%0A    %22%22%22setup_module function for functest based python tests%22%22%22%0A    if not hasattr(windmill, 'settings'):%0A        admin_lib.configure_global_settings(logging_on=False)%0A        %0A    if not windmill.is_active:%0A        module.windmill_dict = admin_lib.setup()%0A    else:%0A        module.windmill_dict = admin_lib.shell_objects_dict%0A%0Adef teardown_module(module):%0A    %22%22%22teardown_module function for functest based python tests%22%22%22%0A    # Incase we're in runserver mode and test were passed to the windmill command line%0A    if hasattr(windmill, 'settings') and windmill.settings%5B'EXIT_ON_DONE'%5D and windmill.runserver_running:%0A        module.windmill_dict%5B'xmlrpc_client'%5D.stop_runserver() %0A    else:%0A        admin_lib.teardown(module.windmill_dict)%0A    sleep(.25)

Fixing Python tests.