~xnox/apport/xenial-s390x

« back to all changes in this revision

Viewing changes to test/test_backend_apt_dpkg.py

  • Committer: Martin Pitt
  • Author(s): Julian Andres Klode
  • Date: 2016-08-13 07:05:13 UTC
  • Revision ID: martin.pitt@canonical.com-20160813070513-fbq3699kmia05jzj
test_backend_apt_dpkg.py: Adjust for new error message on missing repositories

It now says "does not have a Release file".

Show diffs side-by-side

added added

removed removed

Lines of Context:
715
715
            self.fail('install_packages() unexpectedly succeeded with broken server URL')
716
716
        except SystemError as e:
717
717
            self.assertIn('nosuchdistro', str(e))
718
 
            self.assertIn('index files failed to download', str(e))
 
718
            try:
 
719
                self.assertRegex(str(e), ".*'http://archive.ubuntu.com/nosuchdistro trusty.*' does not have a Release file")
 
720
            except AssertionError:
 
721
                self.assertIn('index files failed to download', str(e))
719
722
 
720
723
    @unittest.skipUnless(_has_internet(), 'online test')
721
724
    def test_install_packages_permanent_sandbox(self):