From: Chris Lamb Date: Mon, 24 Aug 2015 13:55:44 +0000 (+0200) Subject: tests/test_parse_changes.py: Move test to ParseDscTestCase as we call with dsc_file=1 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=7a9f450509f8a9071fe6c291e9bd5b7b18b565ff;p=dak.git tests/test_parse_changes.py: Move test to ParseDscTestCase as we call with dsc_file=1 Signed-off-by: Chris Lamb --- diff --git a/tests/fixtures/changes/two-beginnings.changes b/tests/fixtures/changes/two-beginnings.changes deleted file mode 100644 index 33fc072b..00000000 --- a/tests/fixtures/changes/two-beginnings.changes +++ /dev/null @@ -1,25 +0,0 @@ ------BEGIN PGP SIGNED MESSAGE OR SO----- -Hash: SHA512 - -This: is a bug. ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA512 - -Question: Is this a bug? ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.11 (GNU/Linux) - -iQIcBAEBCgAGBQJN1s1eAAoJEIATJTTdNH3Is4IP/3ppCve+jzobPjacyqYGyAec -Op2rnYkQulfln1tyaxr8A40MHSWUly1kFebPgO3XNgAQ8mIh7FCeL7tSsaDnrBwq -v/S/6JK1ZGCSuL6dleoqxoBgViJWQEvd297zAe0CzIdJ+JYgTPxX5cHh4E23rWmG -zG9ct3v+5J4mSeEGksZPn8/YalnWRwb72hj/0WTagA2SY89TVZ9onT6p8ftWf6aO -ODXDtclP56GixfnA3jR3reKI5/aLHXSLSYWGDOyEXffr0NoFvgtbsO4Y0FF2+Np3 -MpmJitoIRuJWk3zInYt0GeJskhEbvuF5Fnhiqrg43W5tFxB8pz5QHpDa/oq8Gfea -MU/2p6FHA12nwD7CVdKWv/ra3nAWcJPqqfV//xgnZaBdS7d4G+3+tMFFYk8sWqc1 -JphkXJ9M8eX67oEuKgwhwHGV/wGu96nkTergnvlqpxk6uesfnsy0ixXX0UgLzwEZ -ty1sZcCgq8dhdnEatkvRy2M13pS8S9iONmrowAck15YZuHcudBmvh5PFeNbpldmM -ABLFApnjtD3DljzrjBgnHQS5UHDzDhDiEEAiQrUM3nu/CNi6UPoxasGszJK8W0iV -MQmYVybk2L2lVV3b1qXURMyaFRcmVnLBNad/IiCbQiWTUCwg8zxzJoty1+f7+EDa -rPpj3R0qGxz01UsVtS3W -=/dES ------END PGP SIGNATURE----- diff --git a/tests/fixtures/dsc/9.dsc b/tests/fixtures/dsc/9.dsc new file mode 100644 index 00000000..33fc072b --- /dev/null +++ b/tests/fixtures/dsc/9.dsc @@ -0,0 +1,25 @@ +-----BEGIN PGP SIGNED MESSAGE OR SO----- +Hash: SHA512 + +This: is a bug. +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA512 + +Question: Is this a bug? +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.11 (GNU/Linux) + +iQIcBAEBCgAGBQJN1s1eAAoJEIATJTTdNH3Is4IP/3ppCve+jzobPjacyqYGyAec +Op2rnYkQulfln1tyaxr8A40MHSWUly1kFebPgO3XNgAQ8mIh7FCeL7tSsaDnrBwq +v/S/6JK1ZGCSuL6dleoqxoBgViJWQEvd297zAe0CzIdJ+JYgTPxX5cHh4E23rWmG +zG9ct3v+5J4mSeEGksZPn8/YalnWRwb72hj/0WTagA2SY89TVZ9onT6p8ftWf6aO +ODXDtclP56GixfnA3jR3reKI5/aLHXSLSYWGDOyEXffr0NoFvgtbsO4Y0FF2+Np3 +MpmJitoIRuJWk3zInYt0GeJskhEbvuF5Fnhiqrg43W5tFxB8pz5QHpDa/oq8Gfea +MU/2p6FHA12nwD7CVdKWv/ra3nAWcJPqqfV//xgnZaBdS7d4G+3+tMFFYk8sWqc1 +JphkXJ9M8eX67oEuKgwhwHGV/wGu96nkTergnvlqpxk6uesfnsy0ixXX0UgLzwEZ +ty1sZcCgq8dhdnEatkvRy2M13pS8S9iONmrowAck15YZuHcudBmvh5PFeNbpldmM +ABLFApnjtD3DljzrjBgnHQS5UHDzDhDiEEAiQrUM3nu/CNi6UPoxasGszJK8W0iV +MQmYVybk2L2lVV3b1qXURMyaFRcmVnLBNad/IiCbQiWTUCwg8zxzJoty1+f7+EDa +rPpj3R0qGxz01UsVtS3W +=/dES +-----END PGP SIGNATURE----- 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()