def test_invalid_file(self): """Should verify that the file is invalid""" self.assertFalse(bootstrap.verify(self.bad_src, self.sums, False))
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))