From: Ansgar Burchardt Date: Fri, 20 May 2011 17:06:32 +0000 (+0000) Subject: tests/test_parse_changes.py: update for new SignedFile exceptions X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=f5b045598b52c83b2d9e3f906e9629c54aaf6500;p=dak.git tests/test_parse_changes.py: update for new SignedFile exceptions Signed-off-by: Ansgar Burchardt --- diff --git a/tests/test_parse_changes.py b/tests/test_parse_changes.py index 797ba99c..38f653d0 100755 --- a/tests/test_parse_changes.py +++ b/tests/test_parse_changes.py @@ -4,12 +4,13 @@ from base_test import DakTestCase, fixture import unittest +from daklib.gpg import GpgException from daklib.utils import parse_changes from daklib.dak_exceptions import InvalidDscError, ParseChangesError class ParseChangesTestCase(DakTestCase): def assertParse(self, filename, *args): - return parse_changes(fixture(filename), *args) + return parse_changes(fixture(filename), *args, keyrings=()) def assertFails(self, filename, line=None, *args): try: @@ -17,6 +18,8 @@ class ParseChangesTestCase(DakTestCase): self.fail('%s was not recognised as invalid' % filename) except ParseChangesError: pass + except GpgException: + pass except InvalidDscError, actual_line: if line is not None: assertEqual(actual_line, line)