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

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

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/tests/testTaxTables.py   Products.BastionLedger(Download)
    def testCanAddRate(self):
        self.addRate(0.35,DateTime('1980/01/01'))
 
        self.assertEqual(len(self.table.objectIds()),1)
        self.assertEqual(len(self.table._catalog), 1)
    def testRateOrdering(self):
        self.addRate(0.35,DateTime('1980/01/01'))
        self.addRate(0.34,DateTime('1981/01/01'))
        self.addRate(0.33,DateTime('1982/01/01'))
 
    def testCodes(self):
        self.addRate(0.35,DateTime('1980/01/01'), 'A')
        self.addRate(0.34,DateTime('1980/01/01'), 'B')
        self.addRate(0.35,DateTime('1981/01/01'), 'A')
        self.addRate(0.34,DateTime('1981/01/01'), 'C')