Fake¶
Methods¶
qconcurrency.Fake.__init__(*args, **kwds) |
Accepts/ignores any number of parameters |
Documentation¶
-
class
qconcurrency.Fake(*args, **kwds)[source]¶ Bases:
objectA fake standin object, that allows you to get/call non-existant attributes on it. Like
mock.Mock, but more portable and less utilitarian (this will work, for example in cx_freeze).This exists in this library so that you may define methods that can be used within
ThreadedTask, but can also be called outside of a thread (simply ignoring all signals)Example:
Fake() >>> <qconcurrency.Fake object at 0x7fef27891c10> Fake().fake.fake.fake >>> <qconcurrency.Fake object at 0x7fef27774450> Fake().fake.fake.fake( 'cool', 'you get the point' ) >>> <qconcurrency.Fake object at 0x7fef277123c0>