提交 09a0b923 编写于 作者: C Chris Lamb

tests/test_parse_changes.py: Test that an contentless .dsc fails correctly

上级 4de9caea
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.2 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE5j091iPgEjVqvb1kRAvFtAJ0asUAaac6ebfR3YeaH16HjL7F3GwCfV+AQ
rhYnRmVuNMa8oYSvL4hl/Yw=
=EFAA
-----END PGP SIGNATURE-----
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册