Did I find the right examples for you? yes no

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

src/m/i/Ming-0.4.7/ming/tests/odm/test_declarative.py   Ming(Download)
    def test_polymorphic(self):
        self.Base(a=1)
        self.odm_session.flush()
        self.Derived(a=2,b=2)
        self.odm_session.flush()

src/m/i/Ming-0.4.7/ming/tests/odm/test_mapper.py   Ming(Download)
    def test_polymorphic(self):
        self.Base(a=1)
        self.Derived(a=2,b=2)
        self.session.flush()
        self.session.clear()

src/m/i/Ming-0.4.7/ming/tests/test_declarative.py   Ming(Download)
    def test_hook_base(self):
        b = self.Base(dict(_id=1, a=5))
        b.m.save()
        self.assertEqual(self.hooks_called['before_save'], [b])
        d = self.Derived(dict(a=5, b=6))

src/m/i/Ming-0.4.7/ming/tests/test_functional.py   Ming(Download)
    def test_hook_base(self):
        b = self.Base(dict(_id=1, a=5))
        b.m.save()
        self.assertEqual(self.hooks_called['before_save'], [b])
        d = self.Derived(dict(a=5, b=6))