|File Search||Catalog||Content Search|
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.
Mox is an open source mock object framework for Python, inspired by the Java library EasyMock. To install: $ python setup.py install To run Mox's internal tests: $ python mox_test.py Basic usage: import unittest import mox class PersonTest(mox.MoxTestBase): def testUsingMox(self): # Create a mock Person mock_person = self.mox.CreateMock(Person) test_person more»
python-mox (0.5.0-1) unstable; urgency=low * Initial release (Closes: #488547) -- Iustin Pop <email@example.com> Sun, 29 Jun 2008 21:22:55 +0200
This package was debianized by Iustin Pop <firstname.lastname@example.org> 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 more»