~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/archiveuploader/tests/test_dscfile.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-22 04:23:31 UTC
  • mfrom: (14564.4.2 megalint-7)
  • Revision ID: launchpad@pqm.canonical.com-20111222042331-ldeo5z018n8bq6x1
[r=jtv][no-qa] Lint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2010 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2010-2011 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
 
4
4
"""Test dscfile.py"""
100
100
        which is incredibly unlikely to be hit by normal files in the
101
101
        archive"""
102
102
        dev_zero = open("/dev/zero", "r")
103
 
        ten_MiB = 2**20 * 10
 
103
        ten_MiB = 10 * (2 ** 20)
104
104
        empty_file = dev_zero.read(ten_MiB + 1)
105
105
        dev_zero.close()
106
106
 
179
179
        :param bzip2_count: number of files using bzip2 compression.
180
180
        :param xz_count: number of files using xz compression.
181
181
        """
182
 
        self.assertErrorsForFiles([], files, components, bzip2_count, xz_count)
 
182
        self.assertErrorsForFiles(
 
183
            [], files, components, bzip2_count, xz_count)
183
184
 
184
185
 
185
186
class Test10SourceFormatVerification(BaseTestSourceFileVerification):