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

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

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/tests/testProduct.py   Products.BastionLedger(Download)
    def testLedgerDelete(self):
        # testing cascading deletes don't stop us from removing a ledger at top level
        self.loginAsPortalOwner()
        self.portal.manage_delObjects('ledger')
        self.failUnless(1)

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/tests/testPeriodEnd.py   Products.BastionLedger(Download)
    def testRunReRun(self):
        self.loginAsPortalOwner()
 
        now = DateTime(self.ledger.timezone)
        pe_tool = self.controller_tool.periodend_tool
    def testLossClosingEntries(self):
        self.loginAsPortalOwner()
 
        ledger = self.portal.ledger
        Ledger = ledger.Ledger
    def testProfitClosingEntries(self):
        # tests profit + subsidiary ledger balances which have proved problematic
        self.loginAsPortalOwner()
 
        order_dt = p1_dt - 20
    def testClosingTxnOnEOP(self):
        self.loginAsPortalOwner()
 
        txn = self.ledger.Ledger.createTransaction(title='My Txn', effective=p1_dt+1)
        txn.manage_addProduct['BastionLedger'].manage_addBLEntry('A000001', '-GBP 10.00')

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/tests/testPayroll.py   Products.BastionLedger(Download)
    def testPayslips(self):
        self.loginAsPortalOwner()
        self.employee.manage_editPrivate(start_day = self.now - 7,
                                         salary = ZCurrency('GBP5200'))
 
    def testPortalFactoryCreation(self):
        self.loginAsPortalOwner()
        ledger = self.ledger.Payroll
        # doCreate should create the real object
        temp_object = ledger.restrictedTraverse('portal_factory/BLEmployee/A222222')
    def testDeduction(self):
        self.loginAsPortalOwner()
        self.employee.restrictedTraverse('portal_factory/BLEntryTemplate/union_due')
        self.failUnless('union_due' in self.employee.restrictedTraverse('portal_factory/BLEntryTemplate').objectIds())
 
    # we've removed factory tool support for adding timesheets ...
    def XtestTimesheetSlot(self):
        self.loginAsPortalOwner()
    def testLedgerCreation(self):
        self.loginAsPortalOwner()
        ledger = self.ledger
        temp_object = ledger.restrictedTraverse('portal_factory/BLPayroll/bla')
        self.failUnless('bla' in ledger.restrictedTraverse('portal_factory/BLPayroll').objectIds())

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/tests/testLedger.py   Products.BastionLedger(Download)
    def testVerifyVerifies(self):
        self.loginAsPortalOwner()
        self.assertEqual(self.ledger.verifyExceptions(), None)
 
    if ALL_TESTS:
        def testCopyPaste(self):
            self.loginAsPortalOwner()
        def testPortalFactoryCreation(self):
            self.loginAsPortalOwner()
            temp_object = self.portal.restrictedTraverse('portal_factory/Ledger/new_ledger1')
            self.failUnless('new_ledger1' in self.portal.restrictedTraverse('portal_factory/Ledger').objectIds())
            new_ledger1 = temp_object.portal_factory.doCreate(temp_object, 'new_ledger1')

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/tests/testInventory.py   Products.BastionLedger(Download)
    def testPriceEdit(self):
        # the big all-in test ...
        self.loginAsPortalOwner()
 
        ledger = self.ledger.Ledger
    def testPloneCtors(self):
        self.loginAsPortalOwner()
        inventory = self.ledger.Inventory
 
        id = inventory.invokeFactory(type_name='BLPart', id='widget22')
    def XtestPortalFactoryPartCreation(self):
        self.loginAsPortalOwner()
        inv = self.ledger.Inventory
 
        temp_object = inv.restrictedTraverse('portal_factory/BLPart/widget111')
    def testPortalFactoryPartFolderCreation(self):
        self.loginAsPortalOwner()
        inv = self.ledger.Inventory
 
        temp_object = inv.restrictedTraverse('portal_factory/BLPartFolder/widgets111')
    def testCanAddPartNamedLedger(self):
        self.loginAsPortalOwner()
        inv = self.ledger.Inventory
        inv.manage_addProduct['BastionLedger'].manage_addBLPart('Ledger')
 

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/tests/testForecaster.py   Products.BastionLedger(Download)
    def testPortalFactoryCreation(self):
        self.loginAsPortalOwner()
        ledger = self.ledger
        temp_object = ledger.restrictedTraverse('portal_factory/BLForecaster/bla')
        self.failUnless('bla' in ledger.restrictedTraverse('portal_factory/BLForecaster').objectIds())
        bla = temp_object.portal_factory.doCreate(temp_object, 'bla')
        self.failUnless('bla' in ledger.objectIds())
 
    def testIt(self):
        self.loginAsPortalOwner()

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/tests/testAssetRegister.py   Products.BastionLedger(Download)
    def testPortalFactoryCreation(self):
        self.loginAsPortalOwner()
        ledger = self.ledger
        # doCreate should create the real object
        temp_object = ledger.restrictedTraverse('portal_factory/BLAssetRegister/assets')

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/tests/testAccount.py   Products.BastionLedger(Download)
    def testPortalFactoryCreation(self):
        self.loginAsPortalOwner()
        ledger = self.ledger.Ledger
        # doCreate should create the real object
        temp_object = ledger.restrictedTraverse('portal_factory/BLAccount/A222222')
    def testTaxGroups(self):
        # checking persistence/non-taint of tax_codes dictionary
        self.loginAsPortalOwner()
        ledger = self.ledger.Ledger