Skip to content
This repository has been archived by the owner on Feb 13, 2020. It is now read-only.

Commit

Permalink
update SharingRevisions.test_sharedRevisions to match carddav version
Browse files Browse the repository at this point in the history
  • Loading branch information
bgaya committed Jan 2, 2014
1 parent 11c506b commit b81ebb9
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions txdav/caldav/datastore/test/test_sql_sharing.py
Expand Up @@ -562,9 +562,18 @@ def test_sharedRevisions(self):
self.assertEqual(len(changed), 0)
self.assertEqual(len(deleted), 0)

for depth in ("1", "infinity",):
for depth, result in (
("1", [otherCal.name() + '/',
'calendar/',
'inbox/'],
),
("infinity", [otherCal.name() + '/',
otherCal.name() + '/cal1.ics',
'calendar/',
'inbox/'],
)):
changed, deleted = yield otherHome.resourceNamesSinceRevision(0, depth)
self.assertNotEqual(len(changed), 0)
self.assertEqual(set(changed), set(result))
self.assertEqual(len(deleted), 0)

changed, deleted = yield otherHome.resourceNamesSinceRevision(otherCal._bindRevision, depth)
Expand Down

0 comments on commit b81ebb9

Please sign in to comment.