Ejemplo n.º 1
0
 def test_fix_bad_serial_mobo(self):
     hwl = [('system', 'product', 'serial', '0123456789')]
     detect.fix_bad_serial(hwl, '', 'mobo', '')
     self.assertEqual(detect._get_value(hwl, 'system', 'product', 'serial'),
                      'mobo')
Ejemplo n.º 2
0
 def test_fix_bad_serial_mobo(self):
     hwl = [('system', 'product', 'serial', '0123456789')]
     detect.fix_bad_serial(hwl, '', 'mobo', '')
     self.assertEqual(detect._get_value(hwl, 'system', 'product', 'serial'),
                      'mobo')
Ejemplo n.º 3
0
 def test_fix_bad_serial_zero(self):
     hwl = [('system', 'product', 'serial', '0000000000')]
     detect.fix_bad_serial(hwl, 'uuid', '', '')
     self.assertEqual(detect._get_value(hwl, 'system', 'product', 'serial'),
                      'uuid')
Ejemplo n.º 4
0
 def test_fix_bad_serial_zero(self):
     hwl = [('system', 'product', 'serial', '0000000000')]
     detect.fix_bad_serial(hwl, 'uuid', '', '')
     self.assertEqual(detect._get_value(hwl, 'system', 'product', 'serial'),
                      'uuid')