def test_03_checkPSModulePath(self): '''MCU PSH Install: Check PSModulePath before install''' if self.computer.os != "Windows": self.skipTest("This is a windows test only.") retCode, pshInstall.bef_ModPath = mcuPowershell.checkPSModulePath(self.computer, False) self.assertTrue(retCode, 'Failed check on PSModulePath')
def test_06_checkPSModulePath(self): '''MCU PSH Install: Check PSModulePath after install''' if self.computer.os != "Windows": self.skipTest("This is a windows test only.") retCode, pshInstall.aft_ModPath = mcuPowershell.checkPSModulePath(self.computer, True) self.assertTrue(retCode, 'Failed check on PSModulePath') self.assertNotEqual(self.bef_ModPath, self.aft_ModPath, 'Test PSModPath before and after install failed!! Before: {} After: {}'.format(self.bef_ModPath, self.aft_ModPath))