# Python27 **Repository Path**: sui84/Python27 ## Basic Information - **Project Name**: Python27 - **Description**: No description available - **Primary Language**: Python - **License**: AGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-02-01 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README .. image:: https://img.shields.io/pypi/v/doublex.png :target: http://pypi.python.org/pypi/doublex :alt: Latest PyPI version .. image:: https://travis-ci.org/davidvilla/python-doublex.svg?branch=master :target: https://travis-ci.org/davidvilla/python-doublex :alt: Travis CI status .. image:: https://img.shields.io/pypi/pyversions/doublex.png?maxAge=2592000 :target: http://pypi.python.org/pypi/doublex :alt: Supported Python Versions .. image:: https://img.shields.io/pypi/l/doublex.png?maxAge=2592000 :alt: License Powerful test doubles framework for Python [ `install `_ | `docs `_ | `changelog `_ | `sources `_ | `issues `_ | `PyPI `_ | `buildbot `_ ] 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 `_. 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 `_ (may be outdated) * amateur repository: ``deb http://babel.esi.uclm.es/arco/ sid main`` (always updated) * `official ubuntu package `_ * debian dir: ``svn://svn.debian.org/svn/python-modules/packages/doublex/trunk`` related ------- * `slides `_ * `pyDoubles `_ * `crate `_ * `github clone `_ * `other doubles `_ * `ludibrio `_ * `doubles `_ .. Local Variables: .. coding: utf-8 .. mode: rst .. mode: flyspell .. ispell-local-dictionary: "american" .. fill-columnd: 90 .. End: