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

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

src/m/p/mpdlcd-0.4.0/tests/test_mpdhooks.py   mpdlcd(Download)
        reg = mpdhooks.HookRegistry()
 
        hook = reg.create('some_hook')
        self.assertEqual(SomeHook, hook.__class__)
 
        reg = mpdhooks.HookRegistry()
 
        hook = reg.create('some_hook')
        self.assertEqual(2, hook.foo)
        self.assertEqual(SomeHook, hook.__class__)
 
        hook2 = reg.create('some_hook', foo=4)
        reg = mpdhooks.HookRegistry()
 
        hook = reg.create('some_hook')
        self.assertEqual(SomeHook, hook.__class__)
 
        reg = mpdhooks.HookRegistry()
 
        hook = reg.create('some_hook')
        self.assertEqual(SomeHook, hook.__class__)