From d6a92cc6c1b4ac86ae0e83929bc33b5fca1e6359 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Mon, 1 Mar 2021 14:57:43 +0100 Subject: tests: Match the correct files in filter tests Verify we match at all by adding a positive test as well --- tests/component/deb/test_import_orig.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/component/deb/test_import_orig.py b/tests/component/deb/test_import_orig.py index de1aa2e6..9581f5de 100644 --- a/tests/component/deb/test_import_orig.py +++ b/tests/component/deb/test_import_orig.py @@ -258,7 +258,8 @@ class TestImportOrig(ComponentTestBase): tags=['debian/2.6-2', 'upstream/2.6', 'upstream/2.8']) self._check_component_tarballs(repo, ['foo/test1', 'foo/test2']) - ok_('README' not in repo.ls_tree('HEAD'), + ok_(b'COPYING' in repo.ls_tree('HEAD')) + ok_(b'README' not in repo.ls_tree('HEAD'), "README not filtered out of %s" % repo.ls_tree('HEAD')) tar = '../hello-debhelper_2.8.orig.tar.gz' @@ -299,9 +300,10 @@ class TestImportOrig(ComponentTestBase): tags=['debian/2.6-2', 'upstream/2.6', 'upstream/2.8']) self._check_component_tarballs(repo, ['foo/test1', 'foo/test2']) - ok_('README' not in repo.ls_tree('HEAD'), + ok_(b'COPYING' in repo.ls_tree('HEAD')) + ok_(b'README' not in repo.ls_tree('HEAD'), "README not filtered out of %s" % repo.ls_tree('HEAD')) - ok_('TODO' not in repo.ls_tree('HEAD'), + ok_(b'TODO' not in repo.ls_tree('HEAD'), "TODO not filtered out of %s" % repo.ls_tree('HEAD')) tar = '../hello-debhelper_2.8.orig.tar.gz' -- cgit v1.2.3