def test_list_licenses(self): ''' Test to returns a list of applied powerpath license keys ''' with patch.dict(powerpath.__salt__, {'cmd.run': MagicMock(return_value='A\nB')}): self.assertListEqual(powerpath.list_licenses(), [])
def test_list_licenses(self): """ Test to returns a list of applied powerpath license keys """ with patch.dict(powerpath.__salt__, {"cmd.run": MagicMock(return_value="A\nB")}): self.assertListEqual(powerpath.list_licenses(), [])
def test_list_licenses(): """ Test to returns a list of applied powerpath license keys """ with patch.dict(powerpath.__salt__, {"cmd.run": MagicMock(return_value="A\nB")}): assert powerpath.list_licenses() == []