[Freeipa-devel] [Patch] 0001 Add check for existence of ipa-join in the tree in test_host_plugin.py
Petr Viktorin
pviktori at redhat.com
Fri Jul 27 11:23:54 UTC 2012
On 07/27/2012 01:13 PM, Tomas Babej wrote:
> Hi,
>
> this patch simply checks if ipa-join exists in ipa-client folder, if not, skips tests relying on it.
> Uses nose.plugin.skip.
>
> https://fedorahosted.org/freeipa/ticket/2905
>
> Tomas Babej
>
Hello,
This would be better done in class setup, so you don't have to repeat it
in every method. Look at XMLRPC_test.setUpClass() in xmlrpc_test.py for
isnpiration.
While you're at it, it would be good to move the mkstemp() call into
setUpClass as well, so that importing the module doesn't have
unnecessary side effects.
--
Petr³
More information about the Freeipa-devel
mailing list