]> git.decadent.org.uk Git - dak.git/blobdiff - tests/test_parse_changes.py
tests/test_parse_changes.py: Actually use the blank file test fixture
[dak.git] / tests / test_parse_changes.py
index 2a66f832a12cb867db0c43543d2832f13beae60e..5f6d49ab38605b5c2cf2662eb6f9e2efd191067e 100755 (executable)
@@ -45,6 +45,11 @@ class ParseDscTestCase(ParseChangesTestCase):
         # Extra blank line after signature header
         self.assertParse('dsc/6.dsc', -1, 1)
 
+    def test_7(self):
+        # Blank file is an invalid armored GPG file
+        with self.assertRaises(GpgException):
+            self.assertParse('dsc/7.dsc', -1, 1)
+
 class ParseChangesTestCase(ParseChangesTestCase):
     def test_1(self):
         # Empty changes