def testTemplates(): print "here" tAdapter = templateAdapter(*dbManager.getDBConfig()) tAdapter.connect() clientId = "204de18f-ed4f-11e5-8824-8c89a5c59145" data = { "name": "dummyTemplate", "description": "dummyTemplateDescription", "templateText": "dummy html webpage", "createDate": str(datetime.now()), "creator": clientId, } tAdapter.StoreTemplate(data, clientId) print tAdapter.ListAvaliableTemplates(clientId) tAdapter.disconnect()
def testCheckIfColumnExists(): tAdapter = templateAdapter(*dbManager.getDBConfig()) tAdapter.connect() print tAdapter.checkIfColumnExists("abcd") print tAdapter.checkIfColumnExists("description") tAdapter.disconnect()
def testGetColumnValueIfExistsForClient(): tAdapter = templateAdapter(*dbManager.getDBConfig()) tAdapter.connect() print tAdapter.GetColumnValueIfExistsForClient("TemplateText", "204de18f-ed4f-11e5-8824-8c89a5c59145") tAdapter.disconnect()