[CentralOH] Strange Class Behavior

Eric Floehr eric at intellovations.com
Thu Feb 6 16:08:49 CET 2014


There are a few gotchas here...



> TEST_CASES['Test090Case1'] = Test090Case1
>

This line inserts the *class* called Test090Case1, not an *instance* of a
class.


def Main():
>     th = TestHarness()
>     for tc in TEST_CASES.keys():
>

The keys method is going to return 'Test090Case1' which is a key. You
probably want the *value* instead.

-Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/centraloh/attachments/20140206/0668e66d/attachment.html>


More information about the CentralOH mailing list