nose-socket-whitelist

Software Screenshot:
nose-socket-whitelist
Software Details:
Version: 1.0.0
Upload Date: 20 Feb 15
Developer: Ted Kaemming
Distribution Type: Freeware
Downloads: 33

Rating: 2.0/5 (Total Votes: 1)

nose-socket-whitelist is a nose plugin that patches socket.getaddrinfo for non-local sockets, allowing you to either log all occurrences or cause the offending test to fail.

socketwhitelist.plugins.LoggingSocketWhitelistPlugin
 logs the test(s) where sockets are opened, printing a summaray report to sys.stderr when all tests have finished executing

socketwhitelist.plugins.ErroringSocketWhitelistPlugin
 causes the offending test to fail with a SocketError

Installation

The plugin package is available from PyPI as nose-socket-whitelist.

Using pip:

pip install -U nose-socket-whitelist

or with setuptools/distribute:

easy_install -U nose-socket-whitelist

Requirements:

  • Python
  • nose

Similar Software

selexe
selexe

14 Apr 15

HOL-TestGen
HOL-TestGen

20 Feb 15

NUnit
NUnit

19 Feb 15

Comments to nose-socket-whitelist

Comments not found
Add Comment
Turn on images!