From 3b26b9f0efe45bbbd05d64cf357a470ebed1acde Mon Sep 17 00:00:00 2001 From: Manik Bindlish Date: Thu, 26 Jul 2018 06:30:09 +0000 Subject: [PATCH] Removing unused attributes from test_run.py There is no use of "whitelist_file" and "blacklist_file" attributes in "_build_regex" method of run.py These are extra lines in the code of test_run.py for "whitelist_file" and "blacklist_file". These attributes were used earlier in "_build_regex" but removed after I6f5fa7796c576b71c4a0dde66896974a8039a848 But it was missed to remove from test_run.py This patch will remove the extra lines of code. Change-Id: I13679de1e8e12bf4c512a76c5dc5058525efda9a --- tempest/tests/cmd/test_run.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tempest/tests/cmd/test_run.py b/tempest/tests/cmd/test_run.py index 6cc356e83d..f55df30bb6 100644 --- a/tempest/tests/cmd/test_run.py +++ b/tempest/tests/cmd/test_run.py @@ -40,24 +40,18 @@ class TestTempestRun(base.TestCase): args = mock.Mock(spec=argparse.Namespace) setattr(args, 'smoke', False) setattr(args, 'regex', '') - setattr(args, 'whitelist_file', None) - setattr(args, 'blacklist_file', None) self.assertIsNone(None, self.run_cmd._build_regex(args)) def test__build_regex_smoke(self): args = mock.Mock(spec=argparse.Namespace) setattr(args, "smoke", True) setattr(args, 'regex', '') - setattr(args, 'whitelist_file', None) - setattr(args, 'blacklist_file', None) self.assertEqual(['smoke'], self.run_cmd._build_regex(args)) def test__build_regex_regex(self): args = mock.Mock(spec=argparse.Namespace) setattr(args, 'smoke', False) setattr(args, "regex", 'i_am_a_fun_little_regex') - setattr(args, 'whitelist_file', None) - setattr(args, 'blacklist_file', None) self.assertEqual(['i_am_a_fun_little_regex'], self.run_cmd._build_regex(args))