diff options
author | Martin Hostettler <textshell@uchuujin.de> | 2016-08-22 23:36:43 +0200 |
---|---|---|
committer | Martin Hostettler <textshell@uchuujin.de> | 2016-08-22 23:36:43 +0200 |
commit | b845a074cb8135b9c4bb782a81ec5616350d834d (patch) | |
tree | 28f7de8007db30125b075a11c61e92d2fc55b889 /src | |
parent | a026febdb03e8beaa8c267de9cfbea46aec28a45 (diff) |
tests: TestBuildFilter: Adjust from item_is_hardlink_master to peek_and_store_hardlink_masters.
Diffstat (limited to 'src')
-rw-r--r-- | src/borg/testsuite/archiver.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/borg/testsuite/archiver.py b/src/borg/testsuite/archiver.py index 34a8acb35..aa6614316 100644 --- a/src/borg/testsuite/archiver.py +++ b/src/borg/testsuite/archiver.py @@ -2204,25 +2204,25 @@ def test_compare_chunk_contents(): class TestBuildFilter: @staticmethod - def item_is_hardlink_master(item): + def peek_and_store_hardlink_masters(item): return False def test_basic(self): matcher = PatternMatcher() matcher.add([parse_pattern('included')], True) - filter = Archiver.build_filter(matcher, self.item_is_hardlink_master, 0) + filter = Archiver.build_filter(matcher, self.peek_and_store_hardlink_masters, 0) assert filter(Item(path='included')) assert filter(Item(path='included/file')) assert not filter(Item(path='something else')) def test_empty(self): matcher = PatternMatcher(fallback=True) - filter = Archiver.build_filter(matcher, self.item_is_hardlink_master, 0) + filter = Archiver.build_filter(matcher, self.peek_and_store_hardlink_masters, 0) assert filter(Item(path='anything')) def test_strip_components(self): matcher = PatternMatcher(fallback=True) - filter = Archiver.build_filter(matcher, self.item_is_hardlink_master, strip_components=1) + filter = Archiver.build_filter(matcher, self.peek_and_store_hardlink_masters, strip_components=1) assert not filter(Item(path='shallow')) assert not filter(Item(path='shallow/')) # can this even happen? paths are normalized... assert filter(Item(path='deep enough/file')) |