Skip to content

Commit

Permalink
make base class generic
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-r-thorpe committed May 3, 2024
1 parent d5b5851 commit ddb1e7f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions nmostesting/suites/MS0502Test.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def tear_down_tests(self):

def pre_tests_message(self):
"""
Introduction to IS-12 Invasive Tests
Introduction to MS-05 Invasive Tests
"""
if not IS12_INTERACTIVE_TESTING:
return
Expand All @@ -60,7 +60,7 @@ def pre_tests_message(self):
# on the Testing Facade prior to the tests starting. This communicates any
# pre-requisites or setup required by the Test User.
question = """\
These tests validate a Node under test's MS-05 Device Model using IS-12.
These tests validate a Node under test's MS-05 Device Model.
These tests are invasive and could cause harm to the Node under test.
Expand All @@ -80,14 +80,14 @@ def pre_tests_message(self):

def post_tests_message(self):
"""
IS-12 Test Suite complete!
MS-05 Test Suite complete!
"""
if not IS12_INTERACTIVE_TESTING:
return
# Once the tests are complete this post tests message is displayed.

question = """\
IS-12 tests complete!
MS-05 tests complete!
Please press the 'Next' button to exit the tests.
"""
Expand Down Expand Up @@ -546,7 +546,7 @@ def _create_compatible_parameters(self, test, parameters):

return result

def test_01(self, test):
def test_ms05_01(self, test):
"""Constraints on writable properties are enforced"""

question = """\
Expand All @@ -559,7 +559,7 @@ def test_01(self, test):
"""
return self._do_check_property_test(test, question, get_constraints=True, get_sequences=False)

def test_02(self, test):
def test_ms05_02(self, test):
"""Constraints on writable sequences are enforced"""
question = """\
From this list of sequences with parameter constraints\
Expand Down Expand Up @@ -632,7 +632,7 @@ def _do_check_readonly_properties(self, test, question, get_sequences=False):

return test.PASS()

def test_03(self, test):
def test_ms05_03(self, test):
"""Check read only properties are not writable"""

question = """\
Expand All @@ -646,7 +646,7 @@ def test_03(self, test):

return self._do_check_readonly_properties(test, question, get_sequences=False)

def test_04(self, test):
def test_ms05_04(self, test):
"""Check read only sequences are not writable"""

question = """\
Expand Down Expand Up @@ -714,7 +714,7 @@ def _do_check_methods_test(self, test, question):

return test.PASS()

def test_05(self, test):
def test_ms05_05(self, test):
"""Check discovered methods"""
question = """\
From this list of methods\
Expand Down Expand Up @@ -867,7 +867,7 @@ def validate_sequences(self, test):

self.sequences_validated = True

def test_06(self, test):
def test_ms05_06(self, test):
"""NcObject method: SetSequenceItem"""
try:
if not self.sequences_validated:
Expand All @@ -887,7 +887,7 @@ def test_06(self, test):

return test.PASS()

def test_07(self, test):
def test_ms05_07(self, test):
"""NcObject method: AddSequenceItem"""
try:
if not self.sequences_validated:
Expand All @@ -907,7 +907,7 @@ def test_07(self, test):

return test.PASS()

def test_08(self, test):
def test_ms05_08(self, test):
"""NcObject method: RemoveSequenceItem"""
try:
if not self.sequences_validated:
Expand Down

0 comments on commit ddb1e7f

Please sign in to comment.