From eb16e5a86eeda8c16be6d1d9a3842c0626e59da7 Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bonicoli Date: Mon, 23 Mar 2015 12:16:53 +0100 Subject: [PATCH] test: always remove remote test folders Signed-off-by: Pierre-Louis Bonicoli Signed-off-by: Nicolas Sebrecht --- test/tests/test_01_basic.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/tests/test_01_basic.py b/test/tests/test_01_basic.py index 0a11be7..ff4f44a 100644 --- a/test/tests/test_01_basic.py +++ b/test/tests/test_01_basic.py @@ -41,7 +41,11 @@ def tearDownModule(): #self.assertFalse(element in self.seq) class TestBasicFunctions(unittest.TestCase): + def setUp(self): + OLITestLib.delete_remote_testfolders() + def tearDown(self): + OLITestLib.delete_remote_testfolders() def test_01_olistartup(self): """Tests if OLI can be invoked without exceptions @@ -49,7 +53,6 @@ class TestBasicFunctions(unittest.TestCase): Cleans existing remote tet folders. Then syncs all "OLItest* (specified in the default config) to our local Maildir. The result should be 0 folders and 0 mails.""" - OLITestLib.delete_remote_testfolders() code, res = OLITestLib.run_OLI() self.assertEqual(res, "") boxes, mails = OLITestLib.count_maildir_mails('')