From 375e9f7c4b855ee8abbab6b5574d54bbd9fb1742 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Tue, 7 Oct 2014 12:48:22 +0200 Subject: tests: Use PEP8-compliant setup/teardown method names The setUp/dearDown names are used in the unittest module, but there is no reason to use them in non-`unittest` test cases. Nose supports both styles (but mixing them can cause trouble when calling super()'s methods). Pytest only supports the new ones. https://fedorahosted.org/freeipa/ticket/4610 Reviewed-By: Tomas Babej --- ipatests/test_pkcs10/test_pkcs10.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipatests/test_pkcs10') diff --git a/ipatests/test_pkcs10/test_pkcs10.py b/ipatests/test_pkcs10/test_pkcs10.py index c56c8d474..8a45327d3 100644 --- a/ipatests/test_pkcs10/test_pkcs10.py +++ b/ipatests/test_pkcs10/test_pkcs10.py @@ -34,7 +34,7 @@ class test_update(object): Test the PKCS#10 Parser. """ - def setUp(self): + def setup(self): nss.nss_init_nodb() if ipautil.file_exists("test0.csr"): self.testdir="./" -- cgit