def tearDownClass(inst): # Reinstall license for twenty-five users maxUsers = db_utils.addTwentyFiveUserLicense(inst.connection, inst.cur) print 'License installed for %d users' % maxUsers # Close connection to database db_utils.closeConnection(inst.connection, inst.cur)
def tearDownClass(inst): um_utils.closeBrowser(inst.user) # Delete license and reinstall license for twenty-five users db_utils.deleteAllLicenses(inst.connection, inst.cur) maxUsers = db_utils.addTwentyFiveUserLicense(inst.connection, inst.cur) print 'License installed for %d users' % maxUsers # Close connection to database db_utils.closeConnection(inst.connection, inst.cur)
def tearDownClass(inst): # Re-create the license table and install a twenty-five user license db_utils.createLicencesTable(inst.connection, inst.cur) print 'License table re-created' maxUsers = db_utils.addTwentyFiveUserLicense(inst.connection, inst.cur) print 'License installed for %d users' % maxUsers # Close connection to database db_utils.closeConnection(inst.connection, inst.cur)