Beispiel #1
0
 def testGetSupportedDeviceFamilyBadInputFile(self):
     self.deviceSku = DeviceSku('')
     with self.assertRaises(InvalidConfiguration):
         self.deviceSku.getSupportedDeviceFamily()
Beispiel #2
0
 def setUp(self):
     #loadLoggingConfig(appName = 'unittest')
     self.deviceSku = DeviceSku()
Beispiel #3
0
 def testGetPortNamesForDeviceFamilyBadInputFile(self):
     self.deviceSku = DeviceSku('')
     ports = self.deviceSku.getPortNamesForDeviceFamily(
         'qfx5100-24q-2p', 'fabric')
     self.assertEqual(0, len(ports['uplinkPorts']))
     self.assertEqual(0, len(ports['downlinkPorts']))