| LEFT | RIGHT |
| 1 # python-abp | 1 # python-abp |
| 2 | 2 |
| 3 A library for working with Adblock Plus filterlists. | 3 A library for working with Adblock Plus filter lists |
| 4 | 4 |
| 5 ## Testing | 5 ## Testing |
| 6 | 6 |
| 7 Unit tests for `python-abp` are located in the `/tests` directory. | 7 Unit tests for `python-abp` are located in the `/tests` directory. |
| 8 [Pytest](http://pytest.org/) is used for quickly running the tests | 8 [Pytest](http://pytest.org/) is used for quickly running the tests |
| 9 during development. | 9 during development. |
| 10 [Tox](https://tox.readthedocs.org/) is used for testing in different | 10 [Tox](https://tox.readthedocs.org/) is used for testing in different |
| 11 environments (Python 2.7, Python 3.5 and PyPy) and code quality | 11 environments (Python 2.7, Python 3.5 and PyPy) and code quality |
| 12 reporting. | 12 reporting. |
| 13 | 13 |
| 14 In order to execute the tests, first create and activate development | 14 In order to execute the tests, first create and activate development |
| 15 virtualenv: | 15 virtualenv: |
| 16 | 16 |
| 17 $ python setup.py devenv | 17 $ python setup.py devenv |
| 18 $ . devenv/bin/activate | 18 $ . devenv/bin/activate |
| 19 | 19 |
| 20 After the development virtualenv is created use pytest for a quick | 20 With the development virtualenv activated use pytest for a quick test run: |
| 21 test run: | |
| 22 | 21 |
| 23 (devenv) $ py.test tests | 22 (devenv) $ py.test tests |
| 24 | 23 |
| 25 and tox for a comprehensive report: | 24 and tox for a comprehensive report: |
| 26 | 25 |
| 27 (devenv) $ tox | 26 (devenv) $ tox |
| LEFT | RIGHT |