From 9c88a8ff071c9a74e3b412bd4f4ef19cd9248611 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Wed, 26 Mar 2014 12:40:17 +0000 Subject: Dead code removal: utilities.checksum() Has test case but no callers. Delete it. Signed-off-by: Bryn M. Reeves --- tests/utilities_tests.py | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'tests/utilities_tests.py') diff --git a/tests/utilities_tests.py b/tests/utilities_tests.py index da0987ff..395fde13 100644 --- a/tests/utilities_tests.py +++ b/tests/utilities_tests.py @@ -43,18 +43,6 @@ class TailTest(unittest.TestCase): self.assertEquals(t, six.b(expected)) -class ChecksumTest(unittest.TestCase): - - def test_simple_hash(self): - self.assertEquals(checksum(StringIO('this is a test'), algorithm="sha256"), - '2e99758548972a8e8822ad47fa1017ff72f06f3ff6a016851f45c398732bc50c') - - def test_hash_loading(self): - # not the greatest test, since we are asking the policy to pick for us - name = get_hash_name() - self.assertTrue(name in ('md5', 'sha256')) - - class ExecutableTest(unittest.TestCase): def test_nonexe_file(self): -- cgit