]> git.decadent.org.uk Git - dak.git/commitdiff
tests/test_parse_changes.py: Actually use the blank file test fixture
authorChris Lamb <lamby@debian.org>
Mon, 24 Aug 2015 12:59:09 +0000 (14:59 +0200)
committerChris Lamb <lamby@debian.org>
Mon, 24 Aug 2015 14:19:47 +0000 (16:19 +0200)
Was added in 47955ee9a5730c81b21ca9f31da4c176a82bcdc4 but never actually
used.

Signed-off-by: Chris Lamb <lamby@debian.org>
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