From 7a9f450509f8a9071fe6c291e9bd5b7b18b565ff Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Mon, 24 Aug 2015 15:55:44 +0200 Subject: [PATCH] tests/test_parse_changes.py: Move test to ParseDscTestCase as we call with dsc_file=1 Signed-off-by: Chris Lamb --- .../{changes/two-beginnings.changes => dsc/9.dsc} | 0 tests/test_parse_changes.py | 10 +++++----- 2 files changed, 5 insertions(+), 5 deletions(-) rename tests/fixtures/{changes/two-beginnings.changes => dsc/9.dsc} (100%) diff --git a/tests/fixtures/changes/two-beginnings.changes b/tests/fixtures/dsc/9.dsc similarity index 100% rename from tests/fixtures/changes/two-beginnings.changes rename to tests/fixtures/dsc/9.dsc diff --git a/tests/test_parse_changes.py b/tests/test_parse_changes.py index ff483743..c7193dbe 100755 --- a/tests/test_parse_changes.py +++ b/tests/test_parse_changes.py @@ -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() -- 2.39.5