define priorities as a property on the test class
This is just cleaner than keeping a global dictionary.
diff --git a/tests/caps.py b/tests/caps.py
index 823d55c..449fce6 100644
--- a/tests/caps.py
+++ b/tests/caps.py
@@ -23,9 +23,6 @@
#@var caps_config Local copy of global configuration data
caps_config = None
-# For test priority
-test_prio = {}
-
def test_set_init(config):
"""
Set up function for caps test classes
@@ -130,12 +127,13 @@
the parameter "caps_table_idx" in the configuration array,
you can control which table to check.
"""
+
+ priority = -1
+
def runTest(self):
logging.info("Running " + str(self))
flow_caps_common(self)
-test_prio["FillTableExact"] = -1
-
class FillTableWC(basic.SimpleProtocol):
"""
Fill the flow table with wildcard matches
@@ -155,8 +153,9 @@
you can control which table to check.
"""
+
+ priority = -1
+
def runTest(self):
logging.info("Running " + str(self))
flow_caps_common(self, is_exact=False)
-
-test_prio["FillTableWC"] = -1