]> git.decadent.org.uk Git - dak.git/blobdiff - tests/test_parse_changes.py
tests/test_parse_changes.py: Test that an contentless .dsc fails correctly
[dak.git] / tests / test_parse_changes.py
index 5f6d49ab38605b5c2cf2662eb6f9e2efd191067e..ff483743d7350fff2cec6b5dc1e0d7508fef4a8f 100755 (executable)
@@ -50,6 +50,11 @@ class ParseDscTestCase(ParseChangesTestCase):
         with self.assertRaises(GpgException):
             self.assertParse('dsc/7.dsc', -1, 1)
 
+    def test_8(self):
+        # No armored contents
+        with self.assertRaisesRegexp(ParseChangesError, "Empty changes"):
+            self.assertParse('dsc/8.dsc', -1, 1)
+
 class ParseChangesTestCase(ParseChangesTestCase):
     def test_1(self):
         # Empty changes