Commit 19b8349e authored by Darko Poljak's avatar Darko Poljak

added --safe-mode test (see method comment :))

parent 6d57adc2
......@@ -32,6 +32,16 @@ class TestSweeper(unittest.TestCase):
for item in iter_file_dups([os.path.join(mydir, 'testfiles_dups')]):
self.assertTrue(type(item).__name__ == 'list')
# does not actually test safe_mode, we would need to find
# hash collision
def test_file_dups_safe_mode(self):
dups = file_dups([os.path.join(mydir, 'testfiles_dups')],
for h, flist in dups.items():
if len(flist) > 1:
dups_exist = True
if __name__ == '__main__':
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment