make sure our mock module set's a __name__

On python 2.4, the mock.Mock() doesn't have
a .__name__, so set one for the test.