| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
git-svn-id: http://pymox.googlecode.com/svn/trunk@75 b1010a0a-674b-0410-b734-77272b80c875
|
|
|
|
|
|
|
|
|
| |
are passed as positional. With tests.
+ Made the comparator more robust by catching exceptions and returning False
git-svn-id: http://pymox.googlecode.com/svn/trunk@60 b1010a0a-674b-0410-b734-77272b80c875
|
|
|
|
| |
git-svn-id: http://pymox.googlecode.com/svn/trunk@55 b1010a0a-674b-0410-b734-77272b80c875
|
|
|
|
|
|
|
|
|
|
|
| |
signatures verified.
Initial patch submitted by vmalloc.
Slight modificants to tests by steve.middlekauff.
git-svn-id: http://pymox.googlecode.com/svn/trunk@50 b1010a0a-674b-0410-b734-77272b80c875
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
objects. This is useful for testing classes that directly
instantiate their dependencies. Previously, one would create yet
another mock that would act as a generator (effectively mocking
__init__ and returning an instance of a MockObject).
StubOutClassWithMocks handles the "generator" mock for you.
Example:
mox.StubOutClassWithMocks(my_import, 'FooClass')
mock1 = my_import.FooClass(1, 2) # Returns a new mock of FooClass
mock2 = my_import.FooClass(9, 10) # Returns another mock instance
mox.ReplayAll()
my_import.FooClass(1, 2) # Returns mock1 again.
my_import.FooClass(9, 10) # Returns mock2 again.
mox.VerifyAll()
git-svn-id: http://pymox.googlecode.com/svn/trunk@44 b1010a0a-674b-0410-b734-77272b80c875
|
|
|
|
|
|
|
|
|
|
| |
order method,
or on the __call__ function of a callable object.
git-svn-id: http://pymox.googlecode.com/svn/trunk@43 b1010a0a-674b-0410-b734-77272b80c875
|
|
|
|
|
|
|
|
|
| |
and Adeodato Simo for adding stubs to the MoxTestBase and fixing up some
of the tests.
git-svn-id: http://pymox.googlecode.com/svn/trunk@40 b1010a0a-674b-0410-b734-77272b80c875
|
|
It's not quite ready for release yet, but it's been appropriately
scrubbed and relicensed.
git-svn-id: http://pymox.googlecode.com/svn/trunk@7 b1010a0a-674b-0410-b734-77272b80c875
|