def testTables(): unitTestHelper.printHeader("Testing integrity of tables"); # Set up for testing. unitTestHelper.printInfo("Adding in test values."); pidTemp = -1; try: pidTemp = DB.setUpTestValues(); except: unitTestHelper.printFailed("Failed to set up test values.... Attempting cleanup"); try: DB.removeTestValues(pidTemp); except: unitTestHelper.printFailed("Failed to clean up test values. Clean up values with PID: %s" % (pidTemp)); return; # Conduct testing... # Check the SubmittedBy Table. # Check the Objects Table. # Check the Funds Table. # Check the UploadedFiles Table. # Clean up after testing. try: DB.removeTestValues(pidTemp); except: unitTestHelper.printFailed("Failed to clean up test values."); return;