debian/0000755000000000000000000000000012302376422007167 5ustar debian/docs0000644000000000000000000000000711760204220010030 0ustar README debian/copyright0000644000000000000000000000212411760204220011112 0ustar This package was debianized by Iustin Pop on Sun, 29 Jun 2008 21:01:19 +0200. It was downloaded from http://code.google.com/p/pymox/ Upstream Author: Google Inc. Copyright: Copyright (C) 2008 Google Inc. License: Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. On Debian systems, the complete text of the Apache License, Version 2.0 can be found in `/usr/share/common-licenses/Apache-2.0'. The Debian packaging is: Copyright (C) 2008, 2009 Iustin Pop and is licensed under the GPL version 3, see `/usr/share/common-licenses/GPL-3'. debian/changelog0000644000000000000000000000254512302376422011047 0ustar python-mox (0.5.3-3build1) trusty; urgency=medium * Rebuild to drop files installed into /usr/share/pyshared. -- Matthias Klose Sun, 23 Feb 2014 13:52:18 +0000 python-mox (0.5.3-3) unstable; urgency=low * Import Ubuntu patches; hopefully no diffs remain -- Iustin Pop Sat, 26 May 2012 18:44:48 +0200 python-mox (0.5.3-2) unstable; urgency=low * Switch to dh_python2 * Standards version 3.9.3 (no changes needed) * Switch to tiny build rules (dh7) and dh_python2 -- Iustin Pop Sun, 20 May 2012 14:03:00 +0200 python-mox (0.5.3-1) unstable; urgency=low * New upstream version -- Iustin Pop Mon, 24 May 2010 12:30:06 +0200 python-mox (0.5.1-2) unstable; urgency=low * Remove build-deps on -dev package (not needed) * Switch to my debian address and remove DM-Upload-Allowed * Standards version 3.8.4 (no changes needed) * Switch to dpkg-source 3.0 (quilt) format -- Iustin Pop Sat, 06 Mar 2010 12:38:42 +0100 python-mox (0.5.1-1) unstable; urgency=low * New Upstream Version * New Standards Version (no changes needed) -- Iustin Pop Wed, 24 Jun 2009 21:04:07 +0200 python-mox (0.5.0-1) unstable; urgency=low * Initial release (Closes: #488547) -- Iustin Pop Sun, 29 Jun 2008 21:22:55 +0200 debian/compat0000644000000000000000000000000211760204220010356 0ustar 7 debian/patches/0000755000000000000000000000000011760204220010607 5ustar debian/patches/python-2.7.2-compat.patch0000644000000000000000000000166611760204220015107 0ustar Description: Fix MockObject usage under Python 2.7.2 Since Python 2.7.2, even old-style classes can override __dir__. __dir__ must return a list-like object, but MockAnything.__dir__ will return a MockMethod. This patch fixes that. Forwarded: http://code.google.com/p/pymox/issues/detail?id=35 Author: Soren Hansen Last-Update: 2011-06-06 Index: python-mox-0.5.3/mox.py =================================================================== --- python-mox-0.5.3.orig/mox.py 2010-04-30 16:56:05.000000000 -0400 +++ python-mox-0.5.3/mox.py 2012-05-24 09:59:31.273974838 -0400 @@ -458,6 +458,8 @@ Returns: A new MockMethod aware of MockAnything's state (record or replay). """ + if method_name == '__dir__': + return self.__class__.__dir__.__get__(self, self.__class__) return MockMethod(method_name, self._expected_calls_queue, self._replay_mode, method_to_mock=method_to_mock, debian/patches/series0000644000000000000000000000003211760204220012017 0ustar python-2.7.2-compat.patch debian/control0000644000000000000000000000173211760204220010566 0ustar Source: python-mox Section: python Priority: extra Maintainer: Iustin Pop Build-Depends: debhelper (>= 7.0.50~), python (>= 2.6.6-3~), python-all (>= 2.6.6-3~) Standards-Version: 3.9.3 Homepage: http://code.google.com/p/pymox/ Vcs-Browser: http://git.debian.org/?p=collab-maint/python-mox.git Vcs-Git: git://git.debian.org/git/collab-maint/python-mox.git X-Python-Version: >= 2.4 Package: python-mox Architecture: all Depends: ${python:Depends}, ${misc:Depends} Provides: ${python:Provides} Description: mock object framework for Python Mox is a mock object framework for Python that simplifies the writing of unittests. . Mox will make mock objects for you, so you don't have to create your own. It mocks the public/protected interfaces of Python objects. You set up your mock objects expected behavior using a domain specific language (DSL), which makes it easy to use, understand, and refactor. . It is based on EasyMock, a Java mock object framework. debian/rules0000755000000000000000000000022311760204220010235 0ustar #!/usr/bin/make -f %: dh $@ --with python2 override_dh_auto_test: for version in $(shell pyversions -vr); do python$$version mox_test.py; done debian/source/0000755000000000000000000000000011760204220010460 5ustar debian/source/format0000644000000000000000000000001411760204220011666 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000042611760204220010213 0ustar # format version number, currently 3; this line is compulsory! version=3 # code.google.com/p/$project/downloads/list has links to $project.googlecode.com/files/ https://code.google.com/p/pymox/downloads/list \ (?:https:)?//pymox.googlecode.com/files/mox-([\d.+]+)\.tar\.gz