From dd577de636a9e1eb69dd9bf4d0f92360b6ca589b Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Tue, 25 Feb 2014 15:06:36 -0500 Subject: [PATCH] tests: Remove 'support' module, not very useful these days --- tests/support.py | 51 ------------------------------------------------ 1 file changed, 51 deletions(-) delete mode 100644 tests/support.py diff --git a/tests/support.py b/tests/support.py deleted file mode 100644 index 5385db5e..00000000 --- a/tests/support.py +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright (C) 2013 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, -# MA 02110-1301 USA. - -import unittest - -from virtinst import support - -from tests import utils - -conn = utils.open_testdriver() - - -class TestSupport(unittest.TestCase): - - def testSupportCollide(self): - """ - Verify no support.SUPPORT* have the same value - """ - valdict = {} - supportnames = [x for x in dir(support) if x.startswith("SUPPORT")] - - for supportname in supportnames: - checkval = int(getattr(support, supportname)) - - if checkval in valdict.values(): - collidename = "unknown?" - for key, val in valdict.items(): - if val == checkval: - collidename = key - break - - raise AssertionError("%s == %s" % (collidename, supportname)) - - valdict[supportname] = checkval - -if __name__ == "__main__": - unittest.main()