def testGetSupportedDeviceFamilyBadInputFile(self): self.deviceSku = DeviceSku('') with self.assertRaises(InvalidConfiguration): self.deviceSku.getSupportedDeviceFamily()
def setUp(self): #loadLoggingConfig(appName = 'unittest') self.deviceSku = DeviceSku()
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']))