(cls, name, bases, d)
| 1342 | """ |
| 1343 | |
| 1344 | def __init__(cls, name, bases, d): |
| 1345 | type.__init__(cls, name, bases, d) |
| 1346 | |
| 1347 | # also get all the attributes from the base classes to account |
| 1348 | # for a case when test class is not the immediate child of MoxTestBase |
| 1349 | for base in bases: |
| 1350 | for attr_name in dir(base): |
| 1351 | d[attr_name] = getattr(base, attr_name) |
| 1352 | |
| 1353 | for func_name, func in d.items(): |
| 1354 | if func_name.startswith('test') and callable(func): |
| 1355 | setattr(cls, func_name, MoxMetaTestBase.CleanUpTest(cls, func)) |
| 1356 | |
| 1357 | @staticmethod |
| 1358 | def CleanUpTest(cls, func): |
nothing calls this directly
no test coverage detected