Metadata-Version: 2.1
Name: pymacaron-unit
Version: 1.0.17
Summary: Library for unittesting json REST apis built with pymacaron
Home-page: https://github.com/pymacaron/pymacaron-unit
Author: Erwan Lemonnier
Author-email: erwan@lemonnier.se
License: BSD
Description: # pymacaron-unit
        
        Python library for unittesting json REST apis built with
        [pymacaron](http://pymacaron.com), including support for JWT authentication,
        Error formats used by pymacaron and compatible with 'pymtest', the
        testing tool used in pymacaron microservices.
        
        ## Synopsis
        
        ```
            from pymacaron_unit.testcase import PyMacaronTestCase
        
            class Tests(PyMacaronTestCase):
        
                def setUp(self):
                    super.setUp()
                    self.host = 'api.fixer.io'
                    self.port = 80
        
                def test_make_some_calls(self):
        
                    # Test that GET returns a json structure
                    j = self.assertGetReturnJson(
                        "v1/hello",
                    )
        
                    # Same, with setting the Authorization http header to a JWT token
                    j = self.assertGetReturnJson(
                        "v1/hello",
                        auth="Bearer %s" % self.token
                    )
        
                    # Do a POST
                    j = self.assertPostReturnJson(
                        "v1/hello",
                        {
                            'foo': 'bar',
                        }
                    )
        ```
        
        See
        [pymacaron_unit/testcase.py](https://github.com/pymacaron/pymacaron-unit/blob/master/pymacaron_unit/testcase.py)
        for a complete list of test methods.
        
        
        ## Examples
        
        See [test/test_unit.py](https://github.com/pymacaron/pymacaron-unit/blob/master/test/test_unit.py) :-)
        
        
        ## Author
        
        Erwan Lemonnier<br/>
        [github.com/pymacaron](https://github.com/pymacaron)</br>
        [github.com/erwan-lemonnier](https://github.com/erwan-lemonnier)<br/>
        [www.linkedin.com/in/erwan-lemonnier/](https://www.linkedin.com/in/erwan-lemonnier/)
Platform: any
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Description-Content-Type: text/markdown
