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

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

src/p/r/Products.salesforcepfgadapter-1.9.1/Products/salesforcepfgadapter/tests/testChainedAdaptersSorting.py   Products.salesforcepfgadapter(Download)
        c.setDependencyMap(({'adapter_id': 'a', 'adapter_name': 'a', 'sf_field': '1'},))
 
        self.assertRaises(CircularChainException, getattr(a, 'getSortedSFAdapters'))
        self.assertRaises(CircularChainException, getattr(b, 'getSortedSFAdapters'))
        self.assertRaises(CircularChainException, getattr(c, 'getSortedSFAdapters'))
        self.ff1.invokeFactory('SalesforcePFGAdapter', 'd')
        d = getattr(self.ff1, 'd')
        self.assertRaises(CircularChainException, getattr(d, 'getSortedSFAdapters'))
 
 
        b.setDependencyMap(({'adapter_id': 'a', 'adapter_name': 'a', 'sf_field': '1'},))
 
        self.assertRaises(CircularChainException, getattr(a, 'getSortedSFAdapters'))
        self.assertRaises(CircularChainException, getattr(b, 'getSortedSFAdapters'))