def test_hash(self): with mock_open() as a: a.write('the quick brown fox\n') a.seek(0) A = file_hash('foo') with mock_open() as b: b.write('the quick brown bar\n') b.seek(0) B = file_hash('bar') self.assertNotEqual(A, B)
def test_hash(self): with mock_open() as a: a.write("the quick brown fox\n") a.seek(0) A = file_hash("foo") with mock_open() as b: b.write("the quick brown bar\n") b.seek(0) B = file_hash("bar") self.assertNotEqual(A, B)