~xubuntu-dev/ubuntu-cdimage/xubuntu-base

« back to all changes in this revision

Viewing changes to lib/cdimage/tests/test_checksums.py

  • Committer: Colin Watson
  • Date: 2015-09-14 07:42:14 UTC
  • Revision ID: cjwatson@canonical.com-20150914074214-6utmkgmobnz5cjvh
Silence some noise from checksum tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
        with mkfile(path) as entry:
130
130
            pass
131
131
        checksum_file = ChecksumFile(
132
 
            self.config, self.temp_dir, "MD5SUMS", hashlib.md5)
 
132
            self.config, self.temp_dir, "MD5SUMS", hashlib.md5, sign=False)
133
133
        checksum_file.add("entry")
134
134
        checksum_file.write()
135
135
        self.rewind_mtime(checksum_file.path)
146
146
        with mkfile(path) as entry:
147
147
            print("ctime", end="", file=entry)
148
148
        checksum_file = ChecksumFile(
149
 
            self.config, self.temp_dir, "MD5SUMS", hashlib.md5)
 
149
            self.config, self.temp_dir, "MD5SUMS", hashlib.md5, sign=False)
150
150
        checksum_file.entries["entry"] = ""
151
151
        checksum_file.changed = True
152
152
        checksum_file.write()
424
424
        shutil.copy(
425
425
            old_iso_i386_path, os.path.join(self.temp_dir, "foo-i386.iso"))
426
426
        checksum_directory(
427
 
            self.config, self.temp_dir, old_directories=[old_dir],
 
427
            self.config, self.temp_dir, old_directories=[old_dir], sign=False,
428
428
            map_expr=r"s/\.iso$/.raw/")
429
429
        with open(os.path.join(self.temp_dir, "MD5SUMS")) as md5sums:
430
430
            digests = (
518
518
            old_metalink_i386_path,
519
519
            os.path.join(self.temp_dir, "foo-i386.metalink"))
520
520
        metalink_checksum_directory(
521
 
            self.config, self.temp_dir, old_directories=[old_dir])
 
521
            self.config, self.temp_dir, old_directories=[old_dir], sign=False)
522
522
        with open(os.path.join(self.temp_dir, "MD5SUMS-metalink")) as md5sums:
523
523
            digests = (
524
524
                hashlib.md5(b"foo-amd64.metalink").hexdigest(),