1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-02-03 20:01:38 +00:00

dg cocoa: adjusted to pyobjc upgrade (functions with multiple return values now require None placeholders to be placed at the places of the output arguments) and removed a couple of forgotten "dupe.parent".

--HG--
extra : convert_revision : svn%3Ac306627e-7827-47d3-bdf0-9a457c9553a1/trunk%40237
This commit is contained in:
hsoft
2009-10-30 16:24:34 +00:00
parent e004c0c2d4
commit 0a06e52d65
4 changed files with 15 additions and 27 deletions

View File

@@ -154,13 +154,13 @@ class TCDirectories(TestCase):
d.add_path(p)
d.set_state(p + 'dir1',STATE_REFERENCE)
d.set_state(p + 'dir2',STATE_EXCLUDED)
files = d.get_files()
self.assertEqual(5, len(list(files)))
files = list(d.get_files())
self.assertEqual(5, len(files))
for f in files:
if f.parent.path == p + 'dir1':
self.assert_(f.is_ref)
if f.path[:-1] == p + 'dir1':
assert f.is_ref
else:
self.assert_(not f.is_ref)
assert not f.is_ref
def test_get_files_with_inherited_exclusion(self):
d = Directories()