提交 7a9f4505 编写于 作者: C Chris Lamb

tests/test_parse_changes.py: Move test to ParseDscTestCase as we call with dsc_file=1

Signed-off-by: NChris Lamb <lamby@debian.org>
上级 09a0b923
......@@ -55,6 +55,11 @@ class ParseDscTestCase(ParseChangesTestCase):
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'))
class ParseChangesTestCase(ParseChangesTestCase):
def test_1(self):
# Empty changes
......@@ -77,10 +82,5 @@ class ParseChangesTestCase(ParseChangesTestCase):
)
self.failIf(changes.get('you'))
def test_4(self):
changes = self.assertParse('changes/two-beginnings.changes', -1, 1)
self.assert_(changes['question'] == 'Is this a bug?')
self.failIf(changes.get('this'))
if __name__ == '__main__':
unittest.main()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册