示例#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))