create Abstract Base Class StateRunner
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 23 Sep 2021 18:41:15 +0000 (19:41 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 23 Sep 2021 18:41:15 +0000 (19:41 +0100)
src/openpower/test/state.py

index 0e4b78af9d08e27f706406c5e9c9ce23ed4207b7..19d9cb94a9a88e684a7a9c414fc9443a62ae0f05 100644 (file)
@@ -26,6 +26,18 @@ from openpower.decoder.power_enums import XER_bits
 from openpower.util import log
 
 
+# TBD an Abstract Base Class
+class StateRunner:
+    """StateRunner: an Abstract Base Class for preparing and running "State".
+    near-identical in concept to python unittest.TestCase
+    """
+    def __init__(self, dut, **kwargs): pass
+    def prepare_for_test(self): pass
+    def step_test(self): pass
+    def end_test(self): pass
+    def cleanup(self): pass
+
+
 class State:
     def get_state(self):
         yield from self.get_intregs()