This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description


Extra testing goodies for

Adds an issues_warnings decorator, where tests must issue one of the expected warnings to pass (similar to for exceptions).

If installed on Python < 2.7 backports the new unittest.TestCase.assert* methods, and converts them to nose style assertions (spelled in PEP 8 fashion, so assert_equal rather than assertEqual):

  • assert_greater / assert_less / assert_greater_equal / assert_less_equal
  • assert_regexp_matches / assert_not_regexp_matches
  • assert_in / assert_not_in
  • assert_is / assert_is_not
  • assert_is_none / assert_is_not_none
  • assert_dict_contains_subset
  • and more….


To install nose_extra_tools run:

$ pip install nose_extra_tools

Usage examples

from nose_extra_tools import assert_in, issues_warnings

@issues_warnings(UserWarning, DeprecationWarning)
def test_issues_deprecation_warning():
    import warnings
    warnings.warn('This test passes')

def test_forgot_to_issue_warning():

def test_backported_assert_in():
    assert_in(10, range(5))


If you find any bugs, or wish to propose new features please let me know.

If you’d like to contribute, simply fork the repository, commit your changes and send a pull request. Make sure you add yourself to AUTHORS.

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date (14.0 kB) Copy SHA256 Checksum SHA256 Source Aug 18, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting