Example #1
0
 def test_createAddressBookStore(self):
     """
     Creating a AddressBookHomeProvisioningFile will create a paired
     AddressBookStore.
     """
     assertProvides(self, IDataStore,
                    self.actualRoot.getChild("addressbooks")._newStore)
Example #2
0
 def test_lookupAddressBookHome(self):
     """
     When a L{CalDAVResource} representing an existing addressbook home is looked up
     in a AddressBookHomeFile, it will create a corresponding L{AddressBookHome}
     via C{newTransaction().addressbookHomeWithUID}.
     """
     calDavFile = yield self.getResource("addressbooks/users/wsanchez/")
     yield self.commit()
     assertProvides(self, IAddressBookHome, calDavFile._newStoreHome)
Example #3
0
 def test_lookupCalendarHome(self):
     """
     When a L{CalDAVResource} representing an existing calendar home is looked
     up in a CalendarHomeResource, it will create a corresponding
     L{CalendarHome} via C{newTransaction().calendarHomeWithUID}.
     """
     calDavFile = yield self.getResource("calendars/users/wsanchez/")
     yield self.commit()
     assertProvides(self, ICalendarHome, calDavFile._newStoreHome)
Example #4
0
 def test_lookupAddressBookHome(self):
     """
     When a L{CalDAVResource} representing an existing addressbook home is looked up
     in a AddressBookHomeFile, it will create a corresponding L{AddressBookHome}
     via C{newTransaction().addressbookHomeWithUID}.
     """
     calDavFile = yield self.getResource("addressbooks/users/wsanchez/")
     yield self.commit()
     assertProvides(self, IAddressBookHome, calDavFile._newStoreHome)
Example #5
0
 def test_lookupCalendarHome(self):
     """
     When a L{CalDAVResource} representing an existing calendar home is looked
     up in a CalendarHomeResource, it will create a corresponding
     L{CalendarHome} via C{newTransaction().calendarHomeWithUID}.
     """
     calDavFile = yield self.getResource("calendars/users/wsanchez/")
     yield self.commit()
     assertProvides(self, ICalendarHome, calDavFile._newStoreHome)
Example #6
0
 def test_createStore(self):
     """
     Creating a DirectoryCalendarHomeProvisioningResource will create a
     paired CalendarStore.
     """
     assertProvides(self, IDataStore, self._sqlCalendarStore)
Example #7
0
 def test_createAddressBookStore(self):
     """
     Creating a AddressBookHomeProvisioningFile will create a paired
     AddressBookStore.
     """
     assertProvides(self, IDataStore, self.addressbookCollection._newStore)
Example #8
0
 def test_createStore(self):
     """
     Creating a DirectoryCalendarHomeProvisioningResource will create a
     paired CalendarStore.
     """
     assertProvides(self, IDataStore, self._sqlCalendarStore)
 def test_createAddressBookStore(self):
     """
     Creating a AddressBookHomeProvisioningFile will create a paired
     AddressBookStore.
     """
     assertProvides(self, IDataStore, self.actualRoot.getChild("addressbooks")._newStore)