class DataModelSanityTester(object):
    """A contrete Tester that performs a Data Model Sanity Check via
        an HTTP Request Handler"""
    def __init__(self):
        """Initialize the Tester"""
        self.implemented_data_model = None
        self.cwmp_walker = CWMPWalk(port=8000)

    def test(self):
        """Test the implemented data model"""
        # Start the Server
        self.cwmp_walker.start_walk()

        # Retreive the implemented data model from the CWMPWalk instance
        self.implemented_data_model = self.cwmp_walker.get_implemented_data_model(
        )

        print("Testing...")
        print("")
        print("The Implemented Data Model is:")
        for data_model_obj in self.implemented_data_model:
            print("{}".format(data_model_obj.get_name()))
            for data_model_param in data_model_obj.get_parameters():
                print("- {} = {}".format(data_model_param.get_name(),
                                         data_model_param.get_value()))
Exemple #2
0
class DataModelSanityTester(object):
    """A contrete Tester that performs a Data Model Sanity Check via
        an HTTP Request Handler"""
    def __init__(self):
        """Initialize the Tester"""
        self.implemented_data_model = None
        self.cwmp_walker = CWMPWalk(port=8000)


    def test(self):
        """Test the implemented data model"""
        # Start the Server
        self.cwmp_walker.start_walk()

        # Retreive the implemented data model from the CWMPWalk instance
        self.implemented_data_model = self.cwmp_walker.get_implemented_data_model()

        print("Testing...")
        print("")
        print("The Implemented Data Model is:")
        for data_model_obj in self.implemented_data_model:
            print("{}".format(data_model_obj.get_name()))
            for data_model_param in data_model_obj.get_parameters():
                print("- {} = {}".format(data_model_param.get_name(), data_model_param.get_value()))
Exemple #3
0
 def __init__(self):
     """Initialize the Tester"""
     self.implemented_data_model = None
     self.cwmp_walker = CWMPWalk(port=8000)
 def __init__(self):
     """Initialize the Tester"""
     self.implemented_data_model = None
     self.cwmp_walker = CWMPWalk(port=8000)