[apparmor] [patch] add better loop support to common_test.py
Christian Boltz
apparmor at cboltz.de
Tue Mar 31 13:36:09 UTC 2015
Hallo Leute,
Am Dienstag, 31. März 2015 schrieb Steve Beattie:
> It'd kind of be nice to support an optional third tuple item that's
> used as the __doc__ string for the function, if it's present.
Good idea, added to the TODO list.
> I also
> wonder about only allowing _run_test() to take two arguments being
> limiting somehow in test construction, but perhaps we can work around
> it by passing complex data structures as the test_data.
Right, 'test_data' (and also 'expected') can be anything - a simple
string or number, an object, a tuple, dict or anything else that python
can handle.
As you probably noticed, I'm already using tuples in the tests added in
the following patches.
Anyway - if you have an idea for an improvement, feel free to send a
patch ;-)
Regards,
Christian Boltz
--
>PHP5 wäre auch mal interessant...
*WAAAAAAAAAAAAAAAAAAAAAHHHHHHHHHHHHHHHHHHHHHHHHHHH*
[> Ratti und David Haller in fontlinge-devel]
More information about the AppArmor
mailing list