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_ipapython/test_ipavalidate.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'ipatests/test_ipapython/test_ipavalidate.py') diff --git a/ipatests/test_ipapython/test_ipavalidate.py b/ipatests/test_ipapython/test_ipavalidate.py index 3393de00e..b912797dd 100644 --- a/ipatests/test_ipapython/test_ipavalidate.py +++ b/ipatests/test_ipapython/test_ipavalidate.py @@ -25,12 +25,6 @@ import unittest from ipapython import ipavalidate class TestValidate(unittest.TestCase): - def setUp(self): - pass - - def tearDown(self): - pass - def test_validEmail(self): self.assertEqual(True, ipavalidate.Email("test@freeipa.org")) self.assertEqual(True, ipavalidate.Email("", notEmpty=False)) -- cgit