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

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

src/e/d/Editra-0.7.20/tests/unittests/testExtensionRegister.py   Editra(Download)
 
        """
        curr = list(self.reg[synreg.LANG_XML]) # force list copy
        self.reg.Associate(synreg.LANG_XML, 'myXml')
        self.assertTrue('myXml' in self.reg[synreg.LANG_XML])
        # Test against adding duplicates
        self.assertTrue('xml' in self.reg[synreg.LANG_XML])
        self.reg.Associate(synreg.LANG_XML, 'xml')
        self.assertEquals(self.reg[synreg.LANG_XML].count('xml'), 1)