def testElementExists(self):
        """
		Tests :meth:`foundations.parsers.PlistFileParser.elementExists` method.
		"""

        plistFileParser = PlistFileParser(PLIST_FILE)
        plistFileParser.parse()
        self.assertTrue(plistFileParser.elementExists("String A"))
        self.assertFalse(plistFileParser.elementExists("String Nemo"))
Example #2
0
    def testElementExists(self):
        """
		This method tests :meth:`foundations.parsers.PlistFileParser.elementExists` method.
		"""

        plistFileParser = PlistFileParser(PLIST_FILE)
        plistFileParser.parse()
        self.assertTrue(plistFileParser.elementExists("String A"))
        self.assertFalse(plistFileParser.elementExists("String Nemo"))