+ def test_7(self):
+ # Blank file is an invalid armored GPG file
+ 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)
+
+ def test_9(self):
+ changes = self.assertParse('dsc/9.dsc', -1, 1)
+ self.assert_(changes['question'] == 'Is this a bug?')
+ self.failIf(changes.get('this'))
+
+ def test_10(self):
+ changes = self.assertParse('dsc/10.dsc', -1, 1)
+ files = build_file_list(changes, 1)
+ rejmsg = check_dsc_files('10.dsc', changes, files.keys())
+ self.assertEqual(rejmsg, ['10.dsc: contains source files not allowed in format 1.0'])
+
+