def testNormalCase1(self): ObjectList = [] CName = 'Guid1' FFE = 'FFE1' Usage = 'UNDEFINED' Notify = True HelpStr = 'Help' IsProtocol = True Object = self.ObjectFactory(CName, FFE, Usage, Notify, HelpStr, IsProtocol) ObjectList.append(Object) Result = GenProtocolPPiSections(ObjectList, IsProtocol) Expected = '''[Protocols] Guid1|FFE1 ## UNDEFINED ## NOTIFY # Help''' self.assertEqual(Result.strip(), Expected) IsProtocol = False ObjectList = [] Object = self.ObjectFactory(CName, FFE, Usage, Notify, HelpStr, IsProtocol) ObjectList.append(Object) Result = GenProtocolPPiSections(ObjectList, IsProtocol) Expected = '''[Ppis] Guid1|FFE1 ## UNDEFINED ## NOTIFY # Help''' self.assertEqual(Result.strip(), Expected)
def testNormalCase1(self): ObjectList = [] CName = "Guid1" FFE = "FFE1" Usage = "UNDEFINED" Notify = True HelpStr = "Help" IsProtocol = True Object = self.ObjectFactory(CName, FFE, Usage, Notify, HelpStr, IsProtocol) ObjectList.append(Object) Result = GenProtocolPPiSections(ObjectList, IsProtocol) Expected = """[Protocols] Guid1|FFE1 ## UNDEFINED ## NOTIFY # Help""" self.assertEqual(Result.strip(), Expected) IsProtocol = False ObjectList = [] Object = self.ObjectFactory(CName, FFE, Usage, Notify, HelpStr, IsProtocol) ObjectList.append(Object) Result = GenProtocolPPiSections(ObjectList, IsProtocol) Expected = """[Ppis] Guid1|FFE1 ## UNDEFINED ## NOTIFY # Help""" self.assertEqual(Result.strip(), Expected)
def testNormalCaseC(self): ObjectList = [] CName = "Guid1" FFE = "FFE1" Usage = "PRODUCES" Notify = "" HelpStr = "" IsProtocol = True Object = self.ObjectFactory(CName, FFE, Usage, Notify, HelpStr, IsProtocol) ObjectList.append(Object) Result = GenProtocolPPiSections(ObjectList, IsProtocol) Expected = """[Protocols] Guid1|FFE1 ## PRODUCES""" self.assertEqual(Result.strip(), Expected)
def testNormalCaseC(self): ObjectList = [] CName = 'Guid1' FFE = 'FFE1' Usage = 'PRODUCES' Notify = '' HelpStr = '' IsProtocol = True Object = self.ObjectFactory(CName, FFE, Usage, Notify, HelpStr, IsProtocol) ObjectList.append(Object) Result = GenProtocolPPiSections(ObjectList, IsProtocol) Expected = '''[Protocols] Guid1|FFE1 ## PRODUCES''' self.assertEqual(Result.strip(), Expected)