Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/e/d/Editra-0.7.20/tests/unittests/testSynXml.py   Editra(Download)
        self.badxml = common.GetFileContents(self.bad)
 
        self.fhandle = syntax.SyntaxModeHandler(self.path)
        self.fhandle.LoadFromDisk()
 
    def testGetXml(self):
        """Test getting the xml representation"""
        tmp_h = syntax.SyntaxModeHandler()
        tmp_h.LoadFromString(self.xml)
 
    def testIsOk(self):
        """Test IsOk method"""
        tmp_h = syntax.SyntaxModeHandler(self.path)
        tmp_h.LoadFromDisk()
        self.assertTrue(tmp_h.IsOk())
        self.assertTrue(tmp_h.Ok)
        tmp_h = syntax.SyntaxModeHandler(self.bad)