]> git.decadent.org.uk Git - dak.git/blobdiff - tests/test_srcformats.py
srcformats: reject orig.tar.gz.asc files in source format 1.0
[dak.git] / tests / test_srcformats.py
index fa6f3b386c34aa3706d62b359f2755dc31ca70c1..42ff63898059b0c5c76b771281f0ecf7aa2fb13f 100755 (executable)
@@ -56,6 +56,12 @@ class FormatOneTestCase(SourceFormatTestCase):
             'native_tar_gz': 1,
             'debian_diff': 1,
         })
+        self.assertRejected({
+            'orig_tar': 1,
+            'orig_tar_gz': 1,
+            'debian_diff': 1,
+            'orig_tar_sig': 1,
+        })
 
 class FormatTreeTestCase(SourceFormatTestCase):
     fmt = srcformats.FormatThree
@@ -123,4 +129,5 @@ class FormatFromStringTestCase(DakTestCase):
         self.assertInvalid('8.4 (hardy)')
 
 if __name__ == '__main__':
+    import unittest
     unittest.main()