def test_get_serial(self, duthost, localhost, platform_api_conn): serial = chassis.get_serial(platform_api_conn) pytest_assert(serial is not None, "Unable to retrieve chassis serial number") pytest_assert(isinstance(serial, STRING_TYPE), "Chassis serial number appears incorrect") self.compare_value_with_device_facts('serial', serial)
def test_get_serial(self, duthosts, enum_rand_one_per_hwsku_hostname, localhost, platform_api_conn): duthost = duthosts[enum_rand_one_per_hwsku_hostname] serial = chassis.get_serial(platform_api_conn) pytest_assert(serial is not None, "Unable to retrieve chassis serial number") pytest_assert(isinstance(serial, STRING_TYPE), "Chassis serial number appears incorrect") self.compare_value_with_device_facts(duthost, 'serial', serial)
def test_get_serial(self, duthost, localhost, platform_api_conn): serial = chassis.get_serial(platform_api_conn) pytest_assert(serial is not None, "Unable to retrieve chassis serial number") pytest_assert(isinstance(serial, str), "Chassis serial number appears incorrect")