Home | History | Annotate | Download | only in site_utils

Lines Matching refs:hwid

58         """Test that an empty hwid raises a ValueError."""
64 self.validate_exception(ValueError, 'hwid', 'invalid_info_type', None)
69 self.validate_exception(IOError, 'hwid', hwid_lib.HWID_INFO_BOM,
76 self.validate_exception(hwid_lib.HwIdException, 'hwid',
86 self.validate_exception(hwid_lib.HwIdException, 'hwid',
94 """Test that get_hwid_info successfully returns a hwid dict.
104 self.assertEqual(hwid_lib.get_hwid_info('hwid', valid_info_type,
119 hwid = 'mock_hwid'
122 info_type, hwid,
130 hwid_lib.get_hwid_info(hwid, info_type, dummy_key_file)
137 """Test that the url is properly constructed with special hwid.
139 Let's make sure that a hwid with a space is properly transformed.
142 hwid = 'mock hwid with space'
143 hwid_quoted = 'mock%20hwid%20with%20space'
151 hwid_lib.get_hwid_info(hwid, info_type, self.dummy_key_file)
158 hwid = 'mock hwid with space'
160 self.assertEqual(hwid_lib.get_hwid_info(hwid, info_type, key_file), {})