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

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

src/a/r/archetypes.schemaextender-2.1.3/archetypes/schemaextender/tests/testSchemaFactory.py   archetypes.schemaextender(Download)
    def testNoExtenderMeansNoChanges(self):
        schema=instanceSchemaFactory(self.instance)
        self.assertTrue(schema is self.instance.schema)
 
 
    def testExtendWithSingleField(self):
        Extender.fields=[MockField()]
        schema=instanceSchemaFactory(self.instance)
        self.assertTrue("MockField" in schema)