New issue 47 by openvcd...@gmail.com: StubOutClassWithMocks does not work
with abstract base classes (ABC)
What steps will reproduce the problem?
Create a file foo.py containing the following class definitions:
__metaclass__ = abc.ABCMeta
Now execute the following:
What is the expected output?
StubOutClassWithMocks() should not produce any errors.
What do you see instead?
Raises "TypeError: Given attr is not a Class. Use StubOutWithMock."
Reason: type(foo.Foo) is <class 'abc.ABCMeta'>, which doesn't fall into any
of the categories in _USE_MOCK_FACTORY.
You received this message because you are subscribed to the Google Groups "mox-discuss" group.
To post to this group, send email to mox-d...@googlegroups.com.
To unsubscribe from this group, send email to firstname.lastname@example.org.
For more options, visit this group at http://groups.google.com/group/mox-discuss?hl=en.