Metadata-Version: 1.1
Name: pytest-raisesregexp
Version: 1.0
Summary: Simple pytest plugin to look for regex in Exceptions
Home-page: https://github.com/Walkman/pytest_raisesregexp
Author: Walkman
Author-email: kissgyorgy@me.com
License: UNKNOWN
Description: pytest-raisesregexp
        ===================
        
        I really missed `assertRaisesRegexp` in unittest module from ``pytest``,
        so I wrote this simple plugin.
        
        Usage
        -----
        
        .. code-block:: python
        
            # some_module.py
            class ExpectedException():
            	pass
        
            def function_to_test():
            	raise ExpectedException('error message: 1560')
        
        
        .. code-block:: python
        
            # test_some_module.py
            from pytest import raises_regexp
            from some_module import function_to_test, ExpectedException
        
            def test_something_to_test():
                with raises_regexp(ExpectedException, r".* 1560"):
                    function_to_test()
        
        
        Installation
        ------------
        
        .. code-block:: bash
        
            $ python setup.py install
        
        It installs as a pytest entry point, so you can:
        
        .. code-block::python
        
            from pytest import raises_regexp
        
        
        LICENSE
        -------
        
        MIT license
        
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Topic :: Software Development :: Testing
