~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/archiveuploader/tests/test_changesfile.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 ChangesFile functionality."""
123
123
        contents = self.getBaseChanges()
124
124
        contents["Binary"] = "binary1\n binary2 \n binary3"
125
125
        changes = self.createChangesFile("mypkg_0.1_i386.changes", contents)
126
 
        self.assertEquals(set(["binary1", "binary2", "binary3"]), changes.binaries)
 
126
        self.assertEqual(
 
127
            set(["binary1", "binary2", "binary3"]), changes.binaries)
127
128
 
128
129
    def test_checkFileName(self):
129
130
        # checkFileName() yields an UploadError if the filename is invalid.