summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/file_test.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/file_test.py b/tests/file_test.py
index 807ed23..7c041b7 100644
--- a/tests/file_test.py
+++ b/tests/file_test.py
@@ -88,10 +88,12 @@ class TestFile(object):
"""
Tests the hashing function - hash_file
"""
- fhash = hash_file(self.TEST_FILE)
fcontent = read_file(self.TEST_FILE)
+ fhash_0 = hash_file(self.TEST_FILE)
+ fhash_1 = hash_file(self.TEST_FILE, fcontent)
- assert fhash == sha512(fcontent).hexdigest()
+ assert fhash_0 == sha512(fcontent).hexdigest()
+ assert fhash_1 == sha512(fcontent).hexdigest()
def test_relativepath(self):