Commit 3cc886f0 authored by Darko Poljak's avatar Darko Poljak

added file_dups_immediate function

parent 12df9e5a
......@@ -3,7 +3,7 @@
# License: GPLv3
import unittest
from sweeper import file_dups, iter_file_dups
from sweeper import file_dups, iter_file_dups, file_dups_immediate
import os
mydir = os.path.dirname(os.path.realpath(__file__))
......@@ -42,6 +42,14 @@ class TestSweeper(unittest.TestCase):
dups_exist = True
def test_file_dups_immediate_dups(self):
it = file_dups_immediate([os.path.join(mydir, 'testfiles_dups')])
dups_exist = False
for x in it:
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