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

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

src/p/y/Py2C-HEAD/tests/test_syntax_tree.py   Py2C(Download)
    def test_init(self):
        self.assertEqual(syntax_tree.identifier("valid_name"), "valid_name")
        with self.assertRaises(syntax_tree.WrongAttributeValueError):
            syntax_tree.identifier("Invalid name")
 
        class SubClass(syntax_tree.identifier):
            pass
 
        self.assertTrue(issubclass(SubClass, syntax_tree.identifier))
        self.assertTrue(issubclass(str, syntax_tree.identifier))