~mvo/aptdaemon/test-fixes

« back to all changes in this revision

Viewing changes to tests/test_pk.py

  • Committer: Michael Vogt
  • Date: 2012-10-09 12:53:37 UTC
  • Revision ID: michael.vogt@ubuntu.com-20121009125337-c4r8p0adefbi1wa9
merge patch from Colin Watson to fix tests with the latest python-apt

Show diffs side-by-side

added added

removed removed

Lines of Context:
426
426
 
427
427
        # now add one
428
428
        client = pk.Client()
429
 
        res = client.install_signature(pk.SigTypeEnum.GPG, 'CF982D18', '', None,
 
429
        res = client.install_signature(pk.SigTypeEnum.GPG, 'D0BF65B7DBE28DB62BEDBF1B683C53C7CF982D18', '', None,
430
430
                lambda p, t, d: True, None)
431
431
        self.assertEqual(res.get_exit_code(), pk.ExitEnum.SUCCESS)
432
432
 
441
441
        client = pk.Client()
442
442
        client.set_locale("C")
443
443
        try:
444
 
            client.install_signature(pk.SigTypeEnum.GPG, '11111111', '', None,
 
444
            client.install_signature(pk.SigTypeEnum.GPG, '1111111111111111111111111111111111111111', '', None,
445
445
                    lambda p, t, d: True, None)
446
446
        except GLib.GError as e:
447
447
            self.assertTrue('Failed to download' in str(e), e)