~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/browser/tests/test_distroseries.py

  • Committer: Raphael Badin
  • Date: 2011-05-10 19:09:35 UTC
  • mto: This revision was merged to the branch mainline in revision 13023.
  • Revision ID: raphael.badin@canonical.com-20110510190935-zdgxs7b0pn43oho1
Typos.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1174
1174
 
1175
1175
    def assertPackageCopied(self, series, src_name, version, view):
1176
1176
        # Helper to check that a package has been copied.
1177
 
        # The new version should now be in the destination series:
 
1177
        # The new version should now be in the destination series.
1178
1178
        pub = series.main_archive.getPublishedSources(
1179
1179
            name=src_name, version=version,
1180
1180
            distroseries=series).one()
1182
1182
        self.assertEqual(version, pub.sourcepackagerelease.version)
1183
1183
 
1184
1184
        # The view should show no errors, and the notification should
1185
 
        # confirm the sync worked:
 
1185
        # confirm the sync worked.
1186
1186
        self.assertEqual(0, len(view.errors))
1187
1187
        notifications = view.request.response.notifications
1188
1188
        self.assertEqual(1, len(notifications))
1192
1192
            '>Derilucid</a>:</p>\n<ul>\n<li>my-src-name 1.0-1 in '
1193
1193
            'derilucid</li>\n</ul>' % (series.parent.name, series.name),
1194
1194
            notifications[0].message)
1195
 
        # 302 is a redirect back to the same page:
 
1195
        # 302 is a redirect back to the same page.
1196
1196
        self.assertEqual(302, view.request.response.getStatus())
1197
1197
 
1198
1198
    def test_sync_notification_on_success(self):