/usr/lib/python3/dist-packages/doublex-1.8.2.egg-info/PKG-INFO is in python3-doublex 1.8.2-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | Metadata-Version: 1.1
Name: doublex
Version: 1.8.2
Summary: Python test doubles
Home-page: https://bitbucket.org/DavidVilla/python-doublex
Author: David Villa Alises
Author-email: David.Villa@gmail.com
License: GPLv3
Description: .. image:: https://pypip.in/v/doublex/badge.png
:target: https://crate.io/packages/doublex/
:alt: Latest PyPI version
.. image:: https://pypip.in/d/doublex/badge.png
:target: https://crate.io/packages/doublex/
:alt: Number of PyPI downloads
.. image:: https://travis-ci.org/davidvilla/python-doublex.svg?branch=master
:target: https://travis-ci.org/davidvilla/python-doublex
:alt: Travis CI status
Powerful test doubles framework for Python
[
`install <http://python-doublex.readthedocs.org/en/latest/install.html>`_ |
`docs <http://python-doublex.readthedocs.org/>`_ |
`changelog <http://python-doublex.readthedocs.org/en/latest/release-notes.html>`_ |
`sources <https://bitbucket.org/DavidVilla/python-doublex>`_ |
`issues <https://bitbucket.org/DavidVilla/python-doublex/issues>`_ |
`PyPI <http://pypi.python.org/pypi/doublex>`_ |
`buildbot <http://fowler.esi.uclm.es:8010/builders/doublex>`_
]
a trivial example
-----------------
.. sourcecode:: python
import unittest
from doublex import Spy, assert_that, called
class SpyUseExample(unittest.TestCase):
def test_spy_example(self):
# given
spy = Spy(SomeCollaboratorClass)
cut = YourClassUnderTest(spy)
# when
cut.a_method_that_call_the_collaborator()
# then
assert_that(spy.some_method, called())
See more about `doublex doubles <http://python-doublex.readthedocs.org/en/latest/reference.html#doubles>`_.
Features
--------
* doubles have not public API framework methods. It could cause silent misspelling.
* doubles do not require collaborator instances, just classes, and it never instantiate them.
* ``assert_that()`` is used for ALL assertions.
* mock invocation order is relevant by default.
* supports old and new style classes.
* **supports Python versions: 2.6, 2.7, 3.2, 3.3, 3.4**
Debian
^^^^^^
* `official package <http://packages.debian.org/source/sid/doublex>`_ (may be outdated)
* amateur repository: ``deb http://babel.esi.uclm.es/arco/ sid main`` (always updated)
* `official ubuntu package <https://launchpad.net/ubuntu/+source/doublex>`_
* debian dir: ``svn://svn.debian.org/svn/python-modules/packages/doublex/trunk``
related
-------
* `slides <http://arco.esi.uclm.es/~david.villa/python-doublex/slides>`_
* `pyDoubles <http://python-doublex.readthedocs.org/en/latest/pyDoubles.html>`_
* `crate <https://crate.io/packages/doublex/>`_
* `github clone <https://github.com/davidvilla/python-doublex>`_
* `other doubles <http://garybernhardt.github.io/python-mock-comparison/>`_
* `ludibrio <https://pypi.python.org/pypi/ludibrio>`_
.. Local Variables:
.. coding: utf-8
.. mode: rst
.. mode: flyspell
.. ispell-local-dictionary: "american"
.. fill-columnd: 90
.. End:
Keywords: unit tests,doubles,stub,spy,mock
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.1
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Software Development :: Testing
|