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

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

src/s/y/synnefo-HEAD/snf-cyclades-app/synnefo/quotas/management/commands/reconcile-commissions-cyclades.py   synnefo(Download)
    def handle(self, *args, **options):
        fix = options['fix']
 
        accepted, rejected = quotas.resolve_pending_commissions()
 

src/s/y/synnefo-HEAD/snf-cyclades-app/synnefo/quotas/tests.py   synnefo(Download)
    def test_no_pending(self, qh):
        qh.return_value = []
        pending = quotas.resolve_pending_commissions()
        self.assertEqual(pending, ([], []))
 
    def test_1(self, qh):
        qh.return_value = [21, 25, 28]
        pending = quotas.resolve_pending_commissions()