Did I find the right examples for you? yes no

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

src/o/e/oe-core-HEAD/meta/lib/oe/tests/test_types.py   oe-core(Download)
import unittest
from oe.maketype import create, factory
 
class TestTypes(unittest.TestCase):
    def assertIsInstance(self, obj, cls):
    def assertFactoryCreated(self, value, type, **flags):
        cls = factory(type)
        self.assertIsNot(cls, None)
        self.assertIsInstance(create(value, type, **flags), cls)
 

src/p/o/poky-HEAD/meta/lib/oe/test_types.py   poky(Download)
import unittest
from oe.maketype import create, factory
 
class TestTypes(unittest.TestCase):
    def assertIsInstance(self, obj, cls):
    def assertFactoryCreated(self, value, type, **flags):
        cls = factory(type)
        self.assertIsNot(cls, None)
        self.assertIsInstance(create(value, type, **flags), cls)