예제 #1
0
 def test_invalid_file(self):
     """Should verify that the file is invalid"""
     self.assertFalse(bootstrap.verify(self.bad_src, self.sums, False))
예제 #2
0
 def test_invalid_file(self):
     """Should verify that the file is invalid"""
     self.assertFalse(bootstrap.verify(self.bad_src, self.sums, False))
예제 #3
0
 def test_valid_file(self):
     """Check if the sha256 sum of the given file is valid"""
     self.assertTrue(bootstrap.verify(self.src, self.sums, False))
예제 #4
0
 def test_valid_file(self):
     """Check if the sha256 sum of the given file is valid"""
     self.assertTrue(bootstrap.verify(self.src, self.sums, False))