]> err.no Git - dak/commitdiff
tests/test_parse_changes.py: update for new SignedFile exceptions
authorAnsgar Burchardt <ansgar@debian.org>
Fri, 20 May 2011 17:06:32 +0000 (17:06 +0000)
committerAnsgar Burchardt <ansgar@debian.org>
Fri, 20 May 2011 17:08:29 +0000 (17:08 +0000)
Signed-off-by: Ansgar Burchardt <ansgar@debian.org>
tests/test_parse_changes.py

index 797ba99ccb9d403ab6623b88facaa06c2014e346..38f653d006256bc612c9d86b7d0a3e3eaaae35b2 100755 (executable)
@@ -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)