def test_get_model(self, duthosts, enum_rand_one_per_hwsku_hostname,
                    localhost, platform_api_conn):
     duthost = duthosts[enum_rand_one_per_hwsku_hostname]
     model = chassis.get_model(platform_api_conn)
     pytest_assert(model is not None, "Unable to retrieve chassis model")
     pytest_assert(isinstance(model, STRING_TYPE),
                   "Chassis model appears incorrect")
     self.compare_value_with_device_facts(duthost, 'model', model)
Exemple #2
0
 def test_get_model(self, duthost, localhost, platform_api_conn):
     model = chassis.get_model(platform_api_conn)
     pytest_assert(model is not None, "Unable to retrieve chassis model")
     pytest_assert(isinstance(model, STRING_TYPE), "Chassis model appears incorrect")
     self.compare_value_with_device_facts('model', model)
Exemple #3
0
 def test_get_model(self, duthost, localhost, platform_api_conn):
     model = chassis.get_model(platform_api_conn)
     pytest_assert(model is not None, "Unable to retrieve chassis model")
     pytest_assert(isinstance(model, str),
                   "Chassis model appears incorrect")