Skip to main content

Inelegant, a directory of weird helpers for tests.

Project description

“Inelegant” is a set of not very elegant tools to help testing. So far there

are four packages:

inelegant.net: the most important tools are the waiter functions: inelegant.net.wait_server_down() will block until a port in a host is not accepting connections anymore, and inelegant.net.wait_server_up() will block until a port in the host will be ready for receiving data. There is also inelegant.net.Server, that sets up a very dumb SocketServer.TCPServer subclass for testing.

inelegant.finder: contains the inelegant.finder.TestFinder class. It is a unittest.TestSuite subclass that makes the task of finding test cases and doctests way less annoying.

inelegant.module: with inelegant.module.create_module(), one can create fully importable Python modules. inelegant.module.installed_module() will create and remove the importable module.

inelegant.process: home of inelegant.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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

inelegant-0.0.2.tar.gz (20.0 kB view details)

Uploaded Source

File details

Details for the file inelegant-0.0.2.tar.gz.

File metadata

  • Download URL: inelegant-0.0.2.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for inelegant-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ad58443d6dcaec26aa0d1e727b1555bb252053ea7f9a3397c1cab80cc3b0e862
MD5 f04cc1508eb9901c8f12d4e5d370145e
BLAKE2b-256 6b69ae181f293f5516e2b9443952fb0c97257fa9a53877c8c472543b7d3c5804

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page