zopefoundation / zope.testing

Other
4 stars 13 forks source link

Make dir() work as expected on zope.testing.module.FakeModule instances. #1

Closed kilink closed 11 years ago

kilink commented 11 years ago

Calling dir() on a fake module instance created w/ zope.testing.module.setUp does not yield the expected results (it yields the instance attributes, instead of the fake module's "global" names).

This branch adds a dir method to FakeModule to emulate the behavior of a real module.

tseaver commented 11 years ago

Thanks!