Example #1
0
 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)
Example #2
0
 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)
Example #3
0
 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)
Example #4
0
 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)