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

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

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/tests/testAccount.py   Products.BastionLedger(Download)
from Products.BastionLedger.BLGlobals import EPOCH
from Products.BastionBanking.ZCurrency import ZCurrency
from Products.BastionLedger.utils import floor_date, lastXDays
 
from zope import component
    def testGraphingFunctions(self):
        now = floor_date(DateTime() - 20)
        days = lastXDays(now, 7)
        ledger = self.ledger.Ledger
        account = ledger.A000001