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 testNopExtender(self):
        schema=instanceSchemaFactory(self.instance)
        self.assertEqual(schema.signature(), self.instance.schema.signature())
 
    def testExtendWithSingleField(self):
    def testExtendTwiceCreateOnce(self):
        Extender.fields=[MockField(), MockField()]
        schema=instanceSchemaFactory(self.instance)
        self.assertEqual(schema.keys().count("MockField"), 1)