Metadata-Version: 2.1
Name: pylint-unittest
Version: 0.2.0
Summary: A Pylint plugin for detecting incorrect use of unittest assertions
Home-page: https://github.com/federicobond/pylint-unittest
Author: Federico Bond
Author-email: federicobond@gmail.com
License: GPLv3
Keywords: pylint,unittest,plugin
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: Unix
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
License-File: LICENSE
Requires-Dist: pylint

pylint-unittest
===============

.. image:: https://travis-ci.org/federicobond/pylint-unittest.svg?branch=master
    :alt: Build Status
    :target: https://travis-ci.org/federicobond/pylint-unittest

.. image:: https://img.shields.io/pypi/v/pylint-unittest.svg
    :alt: Latest Version
    :target: https://pypi.python.org/pypi/pylint-unittest

About
-----

``pylint-unittest`` is a `Pylint <http://pylint.org>`__ plugin for
detecting incorrect use of unittest assertions.

Installation
------------

::

   pip install pylint-unittest

Usage
-----

Ensure ``pylint-unittest`` is installed and then execute:

::

   pylint --load-plugins pylint_unittest [..other options..] <path_to_your_sources>

Alternatively, add ``load_plugins=pylint_unittest`` to your ``pylintrc``
file, under the MASTER section.

Rules
-----

wrong-assertion
~~~~~~~~~~~~~~~

This rule will complain if you use assertEqual with True, False or None
as arguments instead of the respective ``assertTrue``, ``assertFalse``,
``assertIsNone``.

deprecated-unittest-alias
~~~~~~~~~~~~~~~~~~~~~~~~~

This rule will complain if you use a deprecated unittest alias. See
`here <https://docs.python.org/2/library/unittest.html#deprecated-aliases>`__
for more information.

License
-------

GPL-3.0
