From 5ae69be4557f39cd9ae63a3ca1fe6bd64c6dc25b Mon Sep 17 00:00:00 2001 From: Ethan White Date: Thu, 16 Apr 2015 21:19:56 -0600 Subject: [PATCH] Remove unused checkagainstfile function --- lib/tools.py | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/lib/tools.py b/lib/tools.py index 5c3b0f40f..15f3cf4b8 100644 --- a/lib/tools.py +++ b/lib/tools.py @@ -41,28 +41,6 @@ def getmd5(lines): sum.update(line) return sum.hexdigest() -def checkagainstfile(lines, filename): - """Checks a set of lines against a file, and prints all lines that don't - match.""" - TEST_DATA_LOCATION = "test_data" - - testfile = open(os.path.join(TEST_DATA_LOCATION, filename), 'rb') - i = 0 - for line in lines: - i += 1 - print i - line2 = testfile.readline() - if line != line2: - print i - print "LINE1: " + line - print "LINE2: " + line2 - values1 = line.split(',') - values2 = line2.split(',') - for i in range(0, len(values1)): - if values1[i] != values2[i]: - print str(i) + ": " + values1[i] + ", " + values2[i] - testfile.close() - def final_cleanup(engine): """Perform final cleanup operations after all scripts have run."""