Ugly, a directory of weird helpers for tests.
- “Ugly” is a set of not very elegant tools to help testing. So far there are
ugly.net: the most important tools are the waiter functions: ugly.net.wait_server_down() will block until a port in a host is not accepting connections anymore, and ugly.net.wait_server_up() will block until a port in the host will be ready for receiving data. There is also ugly.net.Server, that sets up a very dumb SocketServer.TCPServer subclass for testing.
ugly.finder: contains the ugly.finder.TestFinder class. It is a unittest.TestSuite subclass that makes the task of finding test cases and doctests way less annoying.
ugly.module: with ugly.module.create_module(), one can create fully importable Python modules. ugly.module.installed_module() will create and remove the importable module.
ugly.process: home of ugly.process.Process, a nice multiprocessing.Process subclass that makes the process of starting, stopping and communicating with a function in another process easier enough.
For more info, check the project page.